Create a Sitecore Content Serialization module
Sitecore Content Serialization (SCS) modules enable you to organize and separate serialized items according to their purpose and business domain. Sitecore Helix practices recommend this to reduce technical debt. Modules also allow you to segment serialized items such as demo and test items that must not be deployed to production environments.
To create an SCS module:
-
In your project folder, create an empty module text file named
<name of module>.module.json
. -
Insert the following properties:
RequestResponse{ "namespace": "", "references": [""], "items": "" }
Property
Inclusion
Purpose
namespace
Mandatory
The namespace of the module.
references
Optional
References to other modules that must be deserialized first (such as templates in a Foundation module). This property supports wildcards (for example:
Foundation.*
).items
Optional
Items to be serialized. Configure your item include paths here.
-
Save the module file.
-
In the
sitecore.json
file, in themodules
property, add the path to your module. Alternatively, use wildcards to automatically include modules based on your solution structure:RequestResponse{ "modules": [ "src/*/*/*.module.json" ] }