Rules Created by Scaffolding

When you use the SCORE scaffolding process to create new tenant websites, the process will create several rules that are part of the tenant website. These rules are needed to support shared content folders, insert options for shared data templates, and to ensure queries work properly when editing standard values and branch templates within the visual experience editor.

Serialize These!

It is recommended that you serialize these rules into your tenant website project - either in the TDS.Master or TDS.Master.Content projects within your solution.

Insert Options Rules

LocationExampleDescriptionNotes
/sitecore/system/Settings/Rules/Insert Options/Rules/(tenant name) Snippets and Redirects

The redirect page insert option rule allows content administrators to insert the tenant specific "content page" type as a child of a redirect page within the website.

The snippets rule allows the editor to insert tenant specific snippets within Snippet Folders for this tenant website.

If the user adds new page types that are specific to a tenant, those page types should also be added to this rule based on the I/A requirements of the website.

 

 

Component Datasource Location Rules

LocationExampleDescriptionNotes
/sitecore/system/Settings/Rules/Component Datasource Location/Rules/(tenant name) Datasource LocationBy default, the scaffolding process will map the site root folder as a site shared content root folder as well - so the default blue Content folder will be created in the website root for shared content.This rule would have to be modified if the shared content folder were located somewhere else, or if multisite shared content were added to this tenant.

 

Get Lookup Source Item Rules

LocationExampleDescriptionNotes
/sitecore/system/Settings/Rules/Get Lookup Source Item/Rules/(tenant name) Fields SourceThis rule causes Sitecore to execute any data template field source or rendering parameter field source queries by setting the item context to the home page of the site first.This rule is generally not modified unless additional template folders or branch template folders are needed for a specific tenant.

Updated in SCORE 2.1

/sitecore/system/Settings/Rules/Get Lookup Source Item/Rules/(tenant name) Fields SourceThis rule causes Sitecore to execute any data template field source or rendering parameter field source queries by setting the item context to the site level Selections and Shared Selections items if query contains #selections# token. If query contains #keywords# token, it setting the item context to the site level keywords and shared keywords items.This rule is generally not modified unless additional template folders are needed for a specific tenant.

 

Templates Location Rule

Added in SCORE 2.1

LocationExampleDescriptionNotes

/sitecore/system/Settings/Rules/Templates Location/Rules/(tenant name) Templates Location

This rule causes Sitecore to locate tenant specific data source template if that tenat overrides template defined in rendering Datasource Template filed.This rule is generally not modified unless additional template folders are needed for a specific tenant.