presentation-get-layout
Retrieve the Sitecore layout definition item assigned to a content item by ID or path, with language and final/shared layout options. Inspect the assigned layout item, not renderings on the page.
Instructions
Gets the layout definition item assigned to an item -- the Sitecore layout item itself (e.g. 'Headless Layout'), not the renderings placed on the page. Use presentation-list-renderings to see a page's components.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The ID of the item to retrieve layout for. Supply this or path. | |
| full | No | Return the unprojected .NET object graph. Very large (100,000+ chars/item); diagnostics only. | |
| path | No | The path of the item to retrieve layout for. Supply this or id. | |
| fields | No | Extra Sitecore field names to include, e.g. ['Title']. Ignored when full is true. | |
| language | No | Specifies the item language to retrieve layout. | |
| finalLayout | No | Specifies layout to be retrieved. If 'true', the final layout is retrieved, otherwise - shared layout. |