OneTrust Cookies List
Displays the OneTrust cookie consent category list, allowing users to view and manage their cookie preferences. Integrates with the OneTrust SDK to render the cookie preference center inline on the page.
Usage Notes
- The OneTrust Cookies List rendering outputs a single
<div id="ot-sdk-cookie-policy">element. The OneTrust SDK (loaded via the site-level data-domain script) detects this container and populates it with the cookie category list at runtime. - This rendering has no datasource and no datasource template. It does not require any content author input beyond placing it on the page.
- This rendering has no rendering parameters template of its own. It inherits only the standard parameters from the parent
bs-sectionwrapper (grid padding, borders, color, etc.). - For the cookie list to render, the site must have the OneTrust auto-blocking script loaded globally. This is configured via the
OneTrustDataDomainScriptIdfield on the site's root item (template:Feature/BSTools5/System/Site/Cookie Consent). - The component is entirely client-side. No server-side data fetching occurs; the rendering simply outputs the SDK target container.
- A live example is not shown on this page because the Markel Headless site does not currently have the OneTrust data-domain script ID configured.
Control Properties
Standard Values / Defaults
The OneTrust Cookies List rendering does not define its own rendering parameters template or datasource template. It outputs a fixed HTML container that the OneTrust SDK populates client-side.
| Parameter | Default Value |
|---|---|
| No component-specific rendering parameters or datasource fields. Only inherited section parameters apply. | |
Rendering Registration
| Property | Value |
|---|---|
| Rendering Path | /sitecore/layout/Renderings/Feature/MklComponents/OneTrust/OneTrust Cookies List |
| Component Name | OneTrustCookiesList |
| Datasource Template | (none) |
| Datasource Location | (none) |
Rendered Output
<!-- OneTrust Cookies List start -->
<div id="ot-sdk-cookie-policy" data-widget-title="OneTrust Cookies List"></div>
<!-- OneTrust Cookies List end -->