Rendering Compatibility Rules
Description
Rendering Compatibility Rules are used in getChromeData pipeline to manage compatible renderings list for the current rendering.
<pipelines> ... <getChromeData> ... <processor type="Score.Custom.Pipelines.Editor.RunCompatibleRenderingRules, Score.Custom" patch:source="zzScore.Pipelines.config"/> ... </getChromeData> </pipelines>
RunCompatibleRenderingRules processor executes rules under "/sitecore/system/Settings/Rules/Rendering Compatibility/Rules" folder.
Rule Definitions
Rendering Compatibility Rules definitions are under "/sitecore/system/Settings/Rules/Definitions/Elements/Rendering Compatibility" folder.
Custom Conditions
Rendering Compatibility has only one condition:
- Selected Rendering Condition - the condition evaluates to true if the selected rendering is of specified type
Custom Actions
Rendering Compatibility has 2 actions:
- Add rendering to compatibility list Action - the action adds the selected rendering to the compatible renderings list
Remove rendering from compatibility list Action - the action removes the selected rendering from the compatible renderings list
Rule Scaffolding
Updates compatible renderings list for the rendering according rules specified for that rendering. Removes 'replace with another component' button from rendering's chrome menu If rendering's compatible list is empty.