Skip to main content

Page

A generic page, including elements such as metadata and breadcrumb.

Classname

Photon\CmsEngine\Model\Element\Page

Attributes

AttributeTypeDescription
$breadcrumbarrayArray of breadcrumb links
$navigationarrayArray of navigation links
$contentModular/Listing/Article/FormThe main content block of the page
$metadataarrayHTML metadata values
$attributesarrayArray of key value pairs associated with the page
$bodyClassstringAdditional 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');