$pl = new PageList(); $pl->filterByAutomobileName('honda'); $pl->sortByDisplayOrder(); $pages = $pl->getPage();
if ($this->displayFeaturedOnly == 1) {
$cak = CollectionAttributeKey::getByHandle('is_featured');
if (is_object($cak)) {
$pl->filterByMegaMenu(1);
?>
<?php
if (count($cArray) > 0) { ?>
<?php
for ($i = 0; $i < count($cArray); $i++ ) {
$cobj = $cArray[$i];
$title = $cobj->getCollectionName(); ?>
<td valign="top">
<div class="kompetencertextmenu"><?php if($cobj->getAttribute('thumbnail')){ ?>
<img src="<?php echo $imgHelper->getThumbnail($cobj->getAttribute('thumbnail'), 200, 80)->src ?>" alt="<?php echo $title ?>"/>
<?php }else{ ?>for ($i = 0; $i < count($cArray); $i++ ) { $cobj = $cArray[$i]; $ProjectGroup = $cobj->getCollectionAttributeValue('ProjectGroup'); if (preg_match( "/PressurizedBananaAndFruitRipeningRooms/i", $ProjectGroup )) {
if ($cobj->getCollectionAttributeValue('mega_menu')):
$pl->setItemsPerPage(2)
if ($this->displayFeaturedOnly == 1) { $cak = CollectionAttributeKey::getByHandle('is_featured'); if (is_object($cak)) { $pl->filterByIsFeatured(1); } }
$pl is an instance of page_list model, and that is from concrete5 core code under blocks/page_list/controller
also