Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Submenu don't appear

Started by Muut Archive 10 years ago · 1 replies · 639 views
10 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

10 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 Deleted User, 9 years ago
0 1361 9 years ago
Archive · by Muut Archive, 9 years ago
2 939 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2958 9 years ago
Archive · by Muut Archive, 9 years ago
3 1123 9 years ago