Forum

Thread tagged as: Question

overriding page links in menu navigation

I have a menu with dropdowns which is showing content according to the perch pages which exist, so the categories and pages show as dropdowns of their parent as desired. Hope this below shows better...

Home --- Products --- Corporate Information --- Customer Care --- Contact
            |                 |                      |
       Level 1 cat       Level 1 cat            Level 1 cat
       |         |       |         |            |         |
      page      page    page     page          page      page

My problem is that I don't want the top level items (products, Coporate, Cust care) to be a link at all, currently they want to go to index.php of the folder that they are in. Is there a way to alter this behaviour and have no link? Thanks

John Robinson

John Robinson 0 points

  • 6 years ago

my diagram hasn't worked sorry!!

Drew McLellan

Drew McLellan 2638 points
Perch Support

I really wouldn't advise that, but if you must, you can detect the pageDepth in the template and choose not to output the link.

<perch:if id="pageDepth" match="gt" value="1">
    ... output a link ...
<perch:else />
    ... output just the title
</perch:if>

thanks Drew