custom_page

The custom_page object contains following attributes:


Object Fields

FieldData TypeDescription
custom_page.idStringReturns the type of the custom page.
Possible values: advanced, text.
custom_page.titleStringReturns title of this custom page.
custom_page.contentStringReturns html content of the custom page.
Remarks: Available when custom page is a "text" page
custom_page.rowsArrayReturns an array of grid_row grid rows in the custom page.

Code Example

{% if custom_page.type == 'text' %}
<div class="CustomPage-text-page container">
    <h1 class="CustomPage-title"> {{ custom_page.title | strip_html }} </h1>
    <div class="CustomPage-content"> {{ custom_page.content }} </div>
</div>
{% endif %}