getgrav / grav-theme-deliver

Grav Deliver Theme
https://getgrav.org
MIT License
28 stars 14 forks source link

How to use dropdown menus #13

Closed indigo423 closed 8 years ago

indigo423 commented 8 years ago

There is a option in the navigation.html.twig which seems to enable dropdown navigation (theme_config.dropdown.enabled). I haven't found an example or documentation how to use it?

Help appreciated, thank you in advance.

flaviocopes commented 8 years ago

In the Plugin configuration, set https://github.com/getgrav/grav-theme-deliver/blob/develop/deliver.yaml#L3 to true.

You can see that option in the Admin, in the theme configuration.

indigo423 commented 8 years ago

I've found to enable it, but what is the syntax to add a child entry in the navigation menu?

Thank you for your quick response.

flaviocopes commented 8 years ago

The menu will show child pages, so add pages as childs of the top-level page, and they will be added there.

indigo423 commented 8 years ago

What does it mean "add pages as childs of the top-level page". Is it a subfolder structure or is there an attribute to set?

flaviocopes commented 8 years ago

Add pages inside other pages, in a subfolder structure, like in this example: http://learn.getgrav.org/content/content-pages#folders

indigo423 commented 8 years ago

Thank you this hint helped. I've searched for child pages in the documentation and this was kind of hard to adapt. Thank you for your patience.