---
title: "ルールの設定"
slug: "configure-rules"
abstract: "Sitecore Module Explorerでルールを設定する方法。"
---
# ルールの設定

Sitecore Module Explorerでは、[ルールはincludeの動作を修正](https://doc.sitecore.com/xp/ja/developers/103/developer-tools/sitecore-content-serialization-structural-overview.html "Sitecore Content Serialization structural overview")します。includeは複数のルールを持つことができ、ルールの順序が評価順序を決定します。

## ルールを作る

ルールを作成するには:

1.  Sitecore Module Explorerで、includeまたは子Rules/ フォルダを右クリックして「 **ルールを追加**」をクリックします。
    
    ![Illustration showing the New Module Include Rule window.](https://doc.sitecore.com/api/markdown-image/xp/ja/developers/103/developer-tools/images/CreateRule.png)
    
2.  **新しいモジュールのルールを含める**ウィンドウに、以下の内容を入力してください:
    
    フィールド
    
    内容
    
    **パスストリング**
    
    関連するSitecoreインスタンスアイテムへの経路。
    
    **別名**
    
    [この項目の相対的なシリアライズ経路を短縮するためのオプションエイリアス](https://doc.sitecore.com/xp/ja/developers/103/developer-tools/relative-serialization-path-hashing-and-aliasing.html)です。
    
    **範囲**
    
    ルールを適用すべきアイテムツリー構造の深さの範囲。
    
    **プッシュ操作が許可されています**
    
    アイテムの作成、更新、削除の仕方。
    
    詳細については、[Sitecore Content Serialization構造の概要](https://doc.sitecore.com/xp/ja/developers/103/developer-tools/sitecore-content-serialization-structural-overview.html "Sitecore Content Serialization structural overview") および[Sitecore Content Serialization設定リファレン](https://doc.sitecore.com/xp/ja/developers/103/developer-tools/sitecore-content-serialization-configuration-reference.html "Sitecore Content Serialization configuration reference") スを参照してください。
    
3.  **OK**をクリックします。
    

## ルールを編集する

ルールを編集するには:

1.  Sitecore Module Explorerのモジュール内のincludeで、**ルール**をダブルクリックします。
    
    ![Illustration showing the rule editor window.](https://doc.sitecore.com/api/markdown-image/xp/ja/developers/103/developer-tools/images/EditRule.png)
    
2.  **ルール**ウィンドウで編集したいルールをクリックし、次のフィールドを編集してください:
    
    フィールド
    
    内容
    
    **パスストリング**
    
    関連するSitecoreインスタンスアイテムへの経路。
    
    **別名**
    
    [この項目の相対的なシリアライズ経路を短縮するためのオプションエイリアス](https://doc.sitecore.com/xp/ja/developers/103/developer-tools/relative-serialization-path-hashing-and-aliasing.html)です。
    
    **範囲**
    
    ルールを適用すべきアイテムツリー構造の深さの範囲。
    
    **プッシュ操作が許可されています**
    
    アイテムの作成、更新、削除の仕方。
    
    詳細については、[Sitecore Content Serialization構造の概要](https://doc.sitecore.com/xp/ja/developers/103/developer-tools/sitecore-content-serialization-structural-overview.html "Sitecore Content Serialization structural overview") および[Sitecore Content Serialization設定リファレン](https://doc.sitecore.com/xp/ja/developers/103/developer-tools/sitecore-content-serialization-configuration-reference.html "Sitecore Content Serialization configuration reference") スを参照してください。
    
3.  ルールは取っておけ。
    

> !ヒントルールを並べ替えるには「Move UpDown」と「Move Down」をクリックしてください。

## ルールを削除してください。

ルールを削除するには:

1.  Sitecore Module Explorerでルールを右クリックし、「 **ルールを削除**」をクリックします。
2.  ダイアログボックスで「 **はい** 」をクリックしてルールを削除してください。