Why a customized page list block shows less pages than it should?
Is there any known issue about this?
This is the code:
<?php defined('C5_EXECUTE') or die("Access Denied."); $rssUrl = $showRss ? $controller->getRssUrl($b) : ''; $th = Loader::helper('text'); $ih = Loader::helper('image'); ?> <div class="ccm-page-list"> <?php foreach ($pages as $page): // Prepare data for each page being listed... $title = $th->entities($page->getCollectionName()); $url = $nh->getLinkToCollection($page); $target = ($page->getCollectionPointerExternalLink() != '' && $page->openCollectionPointerExternalLinkInNewWindow()) ? '_blank' : $page->getAttribute('nav_target'); $target = empty($target) ? '_self' : $target; $description = $page->getCollectionDescription(); $description = $controller->truncateSummaries ? $th->wordSafeShortText($description, $controller->truncateChars) : $description;
This has given me a headache, but I think I've narrowed it down to the "Number of pages to show" count getting skewed when you conditionally skip pages in a loop in the view.php file, as it uses the $pages array as the total count.
This seem possible in your situation too?