this.page

this.page

Twig Property

You can access the current page object via this.page and it returns the object Cms\Classes\Page. This object can also be accessed in the PHP code of a page as $this->page.

# Properties

this.page has the following properties.

# layout

Reference to the layout name used by this page, if defined. Not to be confused with this.layout.

___TWIG0___

# id

Converts the page file name and folder name to a CSS friendly identifier.

<body class="page-___TWIG0___">

If the page file was home/index.htm this would generate a class name of page-home-index.

# title

The page title as defined by the configuration.

<h1>___TWIG0___</h1>

# description

The page description as defined by the configuration.

<p>___TWIG0___</p>

# meta_title

An alternative title field, usually more descriptive for SEO purposes.

<title>___TWIG0___</title>

# meta_description

An alternative description field, usually more descriptive for SEO purposes.

<meta name="description" content="___TWIG0___">

# hidden

Hidden pages are accessible only by logged-in back-end users.

___TWIG0___
    <p>Note to other admins: We are currently working on this page.</p>
___TWIG1___

# fileName

Page file name in the theme with extension.

# baseFileName

Page file name in the theme without the extension.