Listing
A generic list page.
Classname
Photon\CmsEngine\Model\Element\Listing
Attributes
| Attribute | Type | Description |
|---|---|---|
| $filterBar | Form | A form for filtering the content of this list |
| $pagination | array | Array of pagination links |
| $feature | Article | Featured article from the list on this page |
| $title | string | The title of the page |
| $azLinkList | array | Array of A to Z navigation links for filtering the content of this list |
| $lists | array | Array 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()
);