Forum

Thread tagged as: Question

Navigation - drop down menus

I'm using the Navigation functionality and a 3rd party addon by flashdevelopment.comto format my menu so that it works on an ipad etc. However, it doesnt work completely (it needs the top level nav to be a # if there are subpages below it) and I wondered if anyone has a better idea for a 3rd party drop down menu that they have got working with the perch navigation functionality.

Thanks

https://www.stmarthaparishcouncil.co.uk

cow shed

cow shed 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Not a great option, but one thing you could do is test to see if there are subpages, and then change what you output:

<perch:if exists="subitems">
    <a href="#">
<perch:else />
    <a href="<perch:pages id="pagePath" />">
</perch:if>

I say not a great option, as it leaves things a bit non-functional if the plugin fails for whatever reason.

I got this working using some menu code from https://www.dynamicdrive.com/ (thanks to Jamie and rotovista.co.uk)