Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Submenu don't appear

Started by Muut Archive 11 years ago · 1 replies · 764 views
11 years ago

Hi everyone, on my Grav website with Twentyfifteen theme i can't see submenu create in admin panel using "page parent".
Any solution?
Thanks

11 years ago

It appears that TwentyFifteen does not support any kind of child/submenus: https://github.com/getgrav/grav-theme-twentyfifteen/blob/develop/templates/partials/navigation.html.twig

It has a simple loop over the top level pages. This is probably because when the theme was ported there was no submenu styling or logic in the original theme.

Compare this to Antimatter: https://github.com/getgrav/grav-theme-antimatter/blob/develop/templates/partials/navigation.html.twig

And you can see that this theme has much more logic including a macro that is called recursively to iterate over all pages and create a hierarchal tree that is styled by CSS into a dropdown menu system.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 674 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5337 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago