Set which renderings are allowed in a placeholder
You can use placeholder settings to restrict the renderings that can be added to placeholders. If you are using placeholder settings and you create a new rendering, you must update the settings for placeholders where you want to use the new rendering.
The placeholder name must contain the terms row
or column
, for example, intro-row-1-{*}
or accordioncolumn-1-{*}
.
Items in the sitecore/Layouts/Placeholder Settings folder are used for putting the actual rendering into the page. The placeholder name can end in a number or a hyphen before the {*}, for example, Placeholder Key: intro-row-1-{*}
.
Items in the sitecore/site/site root page/Presentation/Placeholder Settings folder are used for setting the Allowed Controls configuration for the renderings. They need a very similar placeholder key to match the sitecore/Layouts/Placeholder Settings item above. The placeholder key can't end with a number or a hyphen before the {*}, for example, Placeholder Key: intro-row*
, but not into-row-*
or intro-row1*
.
To allow renderings for a placeholder:
-
In the Content Editor, in the sitecore/Layout/Placeholder Settings folder, select the placeholder where you want to use the new rendering.
For example, select the content placeholder that is installed with Sitecore by default.
-
In the Data section, in the Allowed Controls field, click Edit.
-
In the Select Items dialog, use the double-arrows to move each rendering that you want to allow into the right pane.
-
Click OK and save the item.