presentation-add-rendering
Adds a rendering to a Sitecore item's presentation at a chosen placeholder or index. Validate allowed components first when layout validity matters.
Instructions
Adds a rendering to presentation of an item. Writes whatever it is told: use get-allowed-components-by-placeholder first, or add-rendering-to-placeholder, if the layout has to stay valid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The ID of the item to add the rendering to. Supply this or path. | |
| path | No | The path of the item to add the rendering to. Supply this or id. | |
| index | No | The index at which the Rendering should be inserted. | |
| database | No | The context database. Sent when addressing the item or the rendering by ID -- a path carries its own database prefix (e.g. master:/sitecore/content/Home). | master |
| language | No | The language version of the item to add the rendering to. | |
| dataSource | No | The rendering data source. | |
| finalLayout | No | Specifies layout to add the rendering to. If 'true', the final layout is used, otherwise - shared layout. | |
| placeHolder | Yes | The placeholder to add the rendering to. | |
| renderingId | No | The ID of the rendering to add. Supply this or renderingPath. | |
| renderingPath | No | The path of the rendering to add. Supply this or renderingId. |