Forum

Thread tagged as: Question, Problem

Pages App and Navigation

I have managed to create master page templates, I have also managed to create sub-level menus using navigation templates. However I just cannot get the level 2 menus to show.

I have this in my navigation template:

<?php perch_pages_navigation(array( 'from-path' => '/services', 'levels' => 2, 'hide_extensions' => true, 'template' => array('submenu-level-1.html', 'submenu-level-2.html') )); ?>

I have created a hard coded master menu, then used Pages to add a sub level page then a page below that as a test.

However the sub level does not display and is not there in the output html.

What am I doing wrong? Is there a step by step procedure?

Nigel Coath

Nigel Coath 1 points

  • 7 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

The code you have posted isn't template code. What is actually in your templates?

Its okay I resolved it I was missing this line in the template <perch:pages id="subitems" encode="false" />