1. Sitecore Module Explorer

Configure rules

Version:

In Sitecore Module Explorer, rules modify the behavior of includes. An include can have multiple rules, and the order of the rules dictates the order they are evaluated.

Create a rule

To create a rule:

  1. In Sitecore Module Explorer, right-click on an include or on the child Rules/ folder and click Add Rule.

    Illustration showing the New Module Include Rule window.
  2. In the New Module Include Rule window, enter the following:

    FieldContent
    Path StringThe path to the relevant Sitecore instance items.
    AliasAn optional alias to shorten the relative serialization path for this item.
    ScopeThe scope of how deep into the item tree structure to apply the rule.
    Allowed Push OperationsHow the items can be created, updated, or deleted.

    See the Sitecore Content Serialization structural overview and the Sitecore Content Serialization configuration reference for more details.

  3. Click OK.

Edit a rule

To edit a rule:

  1. In Sitecore Module Explorer, in the module, in the include, double-click Rules.

    Illustration showing the rule editor window.
  2. In the Rules window, click the rule you want to edit and then edit the following fields:

    FieldContent
    Path StringThe path to the relevant Sitecore instance items.
    AliasAn optional alias to shorten the relative serialization path for this item.
    ScopeThe scope of how deep into the item tree structure to apply the rule.
    Allowed Push OperationsHow the items can be created, updated, or deleted.

    See the Sitecore Content Serialization structural overview and the Sitecore Content Serialization configuration reference for more details.

  3. Save the rule.

Tip

Click Move UpDown and Move Down to re-order the rules.

Remove a rule.

To remove a rule:

  1. In Sitecore Module Explorer, right-click the rule and click Remove Rule.
  2. In the dialog box, click Yes to remove the rule.
If you have suggestions for improving this article, let us know!