Page - Liquid Object Reference
On this page
Description
The Page object represents a CMS page for the Store.
:::note
This object supports custom data via the data attribute.
:::
Backed by
This drop renders the s_c__Page__c Salesforce object. A theme writes it as page.
| Liquid attribute | Salesforce field |
|---|---|
identifier |
s_c__Path__c |
meta_description |
s_c__Meta_Description__c |
meta_keywords |
s_c__Meta_Keywords__c |
meta_title |
s_c__Meta_Title__c |
name |
s_c__Title__c |
position |
s_c__Position__c |
requires_login? |
s_c__Require_Login__c |
search_keywords |
s_c__Search_Keywords__c |
subtitle |
s_c__Subtitle__c |
title |
s_c__Title__c |
Every other attribute on this drop is derived by StoreConnect rather than read straight from one field. The Attributes section lists them all.
Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from page.data. See custom data fields in Liquid.
Attributes
| Attribute | Type | Description |
|---|---|---|
base_path |
String | Returns the value of the Path attribute, without the Store path |
body_content |
String | Returns the value of the Body attribute as rich text |
children |
List[Page] | Returns a list of child Pages |
content |
String | Returns the value of the Content attribute as rich text |
content_blocks |
List[ContentBlock] | Returns list of ContentBlocks belonging to this Page |
hidden? |
Boolean | Returns true if this Page is automatically hidden from navigation menus |
home_page? |
Boolean | Returns true if this Page is the Store’s home page |
id |
String | Returns the unique id for this Page |
identifier |
String | Returns the value of the Identifier attribute |
meta_description |
String | Returns the value of the Meta Description attribute |
meta_keywords |
String | Returns the value of the Meta Keywords attribute |
meta_title |
String | Returns the value of the Meta Title attribute |
name |
String | Returns the value of the Name attribute |
navigation_children |
List[Page] | Returns a list of child Pages that are enabled to appear in navigation menus |
parent_page |
Page | Returns this Page’s parent Page |
path |
String | Returns the url path for this Page |
plain_body_content |
String | Returns the value of the Body attribute with Liquid evaluated but not converting any Markdown |
position |
Number | Returns the position of this Page in the navigation |
raw_body_content |
String | Returns the value of the Body attribute without Liquid or Markdown evaluated |
related_pages |
List[Page] | Returns a list of related Pages |
requires_login? |
Boolean | Returns true if this Page requires login |
root_page |
Page | Returns this Page’s top-most parent Page |
search_keywords |
String | Returns the value of the Search Keywords attribute |
social_image |
Image | Returns the image to be used when sharing this Page |
subtitle |
String | Returns the value of the Subtitle attribute |
title |
String | Returns the value of the Title attribute |
url |
String | Returns the complete url for this Page |
visible? |
Boolean | Returns true if this Page is visible on the site |
Available on
- ContentBlock - Liquid Object Reference —
pages - CustomForm - Liquid Object Reference —
success_page - Global - Liquid Object Reference —
all_pages,current_page - Membership - Liquid Object Reference —
pages - MenuItem - Liquid Object Reference —
page - SearchResult - Liquid Object Reference —
pages - Store - Liquid Object Reference —
terms_conditions_page
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.