Skip to content

getPage(int page_id)

The getPage method is used to get a Page object that represents page in the storefront.

Input parameters

page_id

int Numeric identifier of the page.

Returned value

The Page object.

Example

source
{% set page = ObjectApi.getPage(page_id) %}
{{ page.name }}
output
Example page