Forum

Thread tagged as: Question

Navigation, listing sub pages of current page

Hi, when I use the perch_pages_navigation function to display pages within a section of the website it returns all pages? Here's the code I'm using...

<?php
perch_pages_navigation(array(
    'from-path'=>'*',
    'from-level'=>1,
));
?>

Can't see what I'm doing wrong?

Jon H

Jon H 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Which version of Perch are you using?

Jon H

Jon H 0 points

Updated to version 2.8.10. Still get the list of all pages?

Drew McLellan

Drew McLellan 2638 points
Perch Support

What can you tell me about the navigation structure?

Jon H

Jon H 0 points

Hi Drew, usual structure, pages, sub-pages etc. When I use...

<?php perch_pages_navigation(array(
  'flat' => false
)); ?>

...still returns all items at the same level?

Drew McLellan

Drew McLellan 2638 points
Perch Support

How does the output differ from this:

perch_pages_navigation();
Jon H

Jon H 0 points

Hi Drew. All fixed, there was a problem with the item.html file which prevented the...

<ul> </ul>

..from being outputted.