Page
A generic page, including elements such as metadata and breadcrumb.
Classname
Photon\CmsEngine\Model\Element\Page
Attributes
Attribute | Type | Description |
---|---|---|
$breadcrumb | array | Array of breadcrumb links |
$navigation | array | Array of navigation links |
$content | Modular/Listing/Article/Form | The main content block of the page |
$metadata | array | HTML metadata values |
$attributes | array | Array of key value pairs associated with the page |
$bodyClass | string | Additional CSS class name to be printed on the body HTML element |
<?php
use Photon\CmsEngine\Model\Element\Page;
$page = new Page();
$page->setContent($article);
$page->setBreadcrumb($this->getBreadcrumb());
$page->setMetadata($this->getMetadata());
$page->setBodyClass('councillor-article');