انتقل إلى المحتوى الرئيسي

page

Lets the merchant select a store page. Returns the page object with its title, handle, and content.

Properties

PropertyTypeRequiredDescription
type"page"YesField type identifier
labelstringYesLabel shown in the builder
defaultstringNoDefault value (empty string if omitted)

Usage

{
"selectedPage": {
"type": "page",
"label": "Page",
"default": ""
}
}
Page object

The returned page object includes title, handle, and content. Access fields like page.title or render HTML content with page.content | safe.

Interactive Preview

Interactive Preview
About Us
handle: about-us
Live Output
{
  "selectedPage": {
    "_id": "691f38a8a60232b8a1049823",
    "title": "About Us",
    "handle": "about-us",
    "content": "<p>Welcome to our store...</p>"
  }
}