pmoreno-rodriguez / grav-theme-editorial

Editorial is a GravCMS port of the Editorial theme from HTML5Up.net.
https://editorial.pmdesign.dev
Other
15 stars 4 forks source link

Probleme with submenu #16

Closed dooclock closed 1 year ago

dooclock commented 1 year ago

Why when you add content to the root level of the pages it is not displayed ?

For example here : http://editorial.juanvillen.es/ the submenu only display sub page not the page itself

Firefox_Screenshot_2023-04-18T09-09-42 481Z
pmoreno-rodriguez commented 1 year ago

Hi @dooclock If you take a look at the navigation.htm.twig file you will see that the behavior of the menu is exactly that, to show the child pages of a parent page, if the dropdown menu option is active. It doesn't make much sense to show the content of that parent page, since its objective is precisely to display the child pages it has in the menu. However, with a few modifications to the navigation.html.twig file you can achieve your goal.

dooclock commented 1 year ago

Hi rodriguez, Thx for your answer. I'm just graphic designer i'm not able to make this hacks. :/

By the way an other this that is annoying. When there is a submenu with others submenus, everythings open when you clic.

pmoreno-rodriguez commented 1 year ago

Both the structure of the theme and the behavior of its elements are the originals of the Editorial theme, from HTML5Up. The Grav theme is just a transform and almost completely preserves both CSS styles and JavaScript files. I'll take a look at the behavior of the submenus, but there will almost certainly be modifications to the original JS files.

pmoreno-rodriguez commented 1 year ago

Fixed in new version 1.0.8

dooclock commented 1 year ago

thx !