Page list child page order

Permalink
Hi everyone, would appreciate any help I can get on this. Basically I'm using a page list block to show product ranges. On this page, it should be showing the sections according to the site map order:
http://185.38.45.152/~windowmateupvc/products/doors/...

You can see on the left hand side what the page order should be. However as you can see on the right the sections are mixed up. The ones messing up the order are the child pages of the patio doors section. Can anyone shed light on how to fix this?

gracehcoote
 
goutnet replied on at Permalink Reply
Are you sure both the navigation block (on the left I believe?) and your page list are using the same order to begin with ?

Could you post some screenshots of the configs of both blocks?
gracehcoote replied on at Permalink Reply 2 Attachments
gracehcoote
Hi goutnet, thanks for your reply. Yep sure, I should say the left block is using an auto nav and the main page block is a page list, however they are both set to use the sitemap order. The first attachment shows the left auto navs settings and the second shows the page list. As you can see they are both set to show in sitemap order. So I'm a bit baffled as to why the child pages are just going wherever they want! I did read somewhere that page lists get confused by child pages but I'm just really unsure how to fix it. The page list block uses a template which I created, but I don't think the template includes anything that would upset the page order. Below is the code for the template I'm using:

<?php
defined('C5_EXECUTE') or die("Access Denied.");
$rssUrl = $showRss ? $controller->getRssUrl($b) : '';
$th = Loader::helper('text');
$ih = Loader::helper('image'); 
//Note that $nh (navigation helper) is already loaded for us by the controller (for legacy reasons)
?>
<div class="ccm-page-list rangeCats cf">
   <?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;
      $img = $page->getAttribute('main_image');
gracehcoote replied on at Permalink Reply
gracehcoote
Sorry I should also say that the pages messing it up are the sub pages of the patio doors section: Sliding Patio Doors & Bi-Fold Doors. If you were to imagine they're not there, you can see that the rest of the pages are in the right order.