Restricting or swapping rendering controls on placeholders
While adding renderings from the Experience Editor, by default, it allows you to add all the renderings from the /sitecore/layout/Renderings
folder. However, just imagine how difficult it would be for content owners to choose a logically valid and compatible rendering from the huge list.
In this recipe, you will learn how we can show a template-specific list of the allowed and placeholder-compatible renderings from the Experience Editor.
Getting ready
We have the main-content
placeholder placed on all pages of the website. We want to restrict content authors to use Carousel, Highlight Featured Products, and Highlight News renderings only on the Home
page. Similarly, for the Products landing ...
Get Sitecore Cookbook for Developers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.