Jump to content

Recommended Posts

Posted

In the $content .= renderNav($page->children) I was  expecting a submenu like a dropdown but it's a. Now how do you make a dropdown menu using the Processwire way?  Or just code like usual HTML5/CSS3 li, ul tags using "foreach ($page->children as" construct?

Posted

A easy methode to generate Menu Markup is this nice module

https://processwire.com/talk/topic/1036-markupsimplenavigation/

It has many options and could generate quite every menu html strucure you need.

And for simple API code you could take a read on the forums...the best way is to use Google on the PW site since the forum search isn't that good.

And with this way to search the forum you can find an incredible source of reading and learning how to go further.

(Even if the posts are from 2013 or earlier the basic will work the most times in the actual PW version too...)

first hit on the GoogleCustomSearch:

https://processwire.com/talk/topic/686-simple-dropdown-menu/

https://processwire.com/talk/topic/8467-zurb-foundation-problem-with-topbar-navigation/

https://processwire.com/talk/topic/5680-bootstrap-3-navigation-with-multiple-leveltier-fix/

https://processwire.com/talk/topic/2819-dropdown-menu/

https://processwire.com/talk/topic/272-multilevel-menu/

Best regards mr-fan

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...