Component Datasource Location Rules
Description
Component Datasource Location rules are used in getRenderingDatasource pipeline to support the "Select a Datasource" dialog used to configure the data source of a presentation component.
<pipelines> .... <getRenderingDatasource> <processor type="Score.Custom.Pipelines.Editor.RunComponentDatasourceLocationRules, Score.Custom" patch:source="zzScore.Pipelines.config"/> .... </getRenderingDatasource> .... </pipelines>
RunComponentDatasourceLocationRules processor executes rules under "/sitecore/system/Settings/Rules/Component Datasource Location/Rules" folder.
Rule Definitions
Component Datasource Location rule definitions is under "/sitecore/system/Settings/Rules/Definitions/Elements/Component Datasource Location" folder.
Custom Conditions
Component Datasource Location has only one condition:
- Rendering is Specific Rendering Condition - the condition evaluates to true if current rendering is specified in the rule
Custom Actions
Component Datasource Location has 5 actions:
- Add Multisite Root for Shared Content Action - the action adds a specific item as a multisite root folder for shared content
- Add Tenant Site Root for Shared Content Action - the action adds a specific item as a tenant-site root folder for site-shared content
- Clear Multisite Roots for Shared Content Action - the action clears all multisite shared content folders
- Clear Tenant Site Roots for Shared Content Action - the action clears all tenant site shared content folders
- Disable Page Local Content Folders Action - the action disables any page local content folders
Rule Scaffolding
Provides "Select a Datasource" dialog with Site Shared Content Folder (blue folder) and Local Page Folder (green folder).
NOTE: Multisite Shared Content Folder (red folder) can be also created depending on actions (see Add Multisite Root for shared Content action).