Skip to main content

Listing

A generic list page.

Classname

Photon\CmsEngine\Model\Element\Listing

Attributes

AttributeTypeDescription
$filterBarFormA form for filtering the content of this list
$paginationarrayArray of pagination links
$featureArticleFeatured article from the list on this page
$titlestringThe title of the page
$azLinkListarrayArray of A to Z navigation links for filtering the content of this list
$listsarrayArray of lists to display on this page
<?php

use Photon\CmsEngine\Model\Element\Listing;

$listing = new Listing();
$listing->setTitle($azPageTitle);

$listItems = $this->getRecordList($items, $aliasitems);
if ($listItems) {
$listing->addList($listItems);
}

$listing->setAZLinkList(
$this->buildAZLinkListBar()
);