Navgroup Issue

  • I'm having an issue with Navgroups not rendering? And I can't work out why.

    PHP: fund-raising.php
    1. <aside class="inner-right-column cf">
    2. <div class="side-links-hero">
    3. Test
    4. <?php perch_pages_navigation(array(
    5. 'navgroup' => 'fund-raising-menu',
    6. 'levels' => 1,
    7. )); ?>
    8. </div>
    9. </aside>

    The above is my code from the page template which renders…

    HTML: rendered-html
    1. <aside class="inner-right-column cf">
    2. <div class="side-links-hero">
    3. Test
    4. </div>
    5. </aside>

    If I add a second navgroup just to see if it renders, it does…

    navgroup.png?dl=0

    fund-menu.png?dl=0

    It just isn't making sense

  • Do you not need a template in your nav declaration e.g.

    PHP
    1. <?php perch_pages_navigation(array(
    2. 'navgroup' =>'fund-raising-menu',
    3. 'template' => 'side_fund-raising-menu.html',
    4. 'levels' => 1
    5. )); ?>


    side_fund-raising-menu.html


    Code
    1. <perch:before><ul></perch:before>
    2.     <li <perch:if exists="current_page"> class="selected"</perch:if>>
    3.         <a href="<perch:if exists="current_page">#<perch:else /><perch:pages id="pagePath" /></perch:if>">
    4.         <perch:pages id="pageNavText" /></a>
    5.         <perch:pages id="subitems" encode="false" />
    6.     </li>
    7. <perch:after></ul></perch:after>