Site-wide components
SiteComponents is a collection of components associated with the website rather than with a single page's Content. Menu and footer are examples of site-wide components. The collection is separate from the website's top-level MenuData and FooterData fields. A collection entry can be null when the corresponding component is absent.
{
"Id": 201,
"UserSiteId": 100,
"BlockName": "Menu",
"BlockParseName": "Menu_50_main",
"Data": "{}",
"DataEdit": null,
"Options": null,
"TemplateBlockAttributes": null,
"TemplateBlockAttributesObject": null
}
This example is illustrative: the parse name and Data fields must correspond to the actual template component. It does not define an API request.
| Field | Type | Description |
|---|---|---|
Id | integer | Site-component identifier. |
UserSiteId | integer | Identifier of the website containing the component. |
BlockName | string | Template component type, such as Menu or Footer. |
BlockParseName | string or null | Compiled name of the associated template component. |
Data | string or null | JSON-encoded component data, whose fields depend on the template. |
DataEdit | string or null | Separate editor-related component data. Its exact relationship to Data depends on the workflow. |
Options | string or null | Component options; the inner format is not specified here. |
TemplateBlockAttributes | string or null | JSON-encoded template block attributes when present. |
TemplateBlockAttributesObject | array or null | Parsed representation of TemplateBlockAttributes; derived by the model. |
Like page-module Data, Data here is a string in the outer JSON, not an embedded object. A site component has an Id, but unlike a page content module it does not have UserSitePageId or Order in this model.
See Menu, Footer, and Page content modules.