This issue appears to happen only in the homepage. If I go directly to the site via the URL (localhost:9900/mis-servicios) then the pages show up in the navigation.
Further context:
The pages that I want to display in the navigation are with the numerical prefix
I am using quark theme, no children, in a fresh install from Grav version v1.7.44.
I have cleared cache various times
I have another site that I am building in which the visible pages show correctly in the navigation. I have the same parameters in the quark site (parent: root ; visible: true ; routable: true).
The menu items shown on the ‘mis-servicios’ page - apologies, it is in the BLOG page where the navigation pages show correctly. In “mis-servicios” it shows one of the modules as a navigation page, which is not intended and in the admin panel is set as in the pic below
To show the frontmatter of the child modules below /home…
And what you would like to see in the menu.
I’m guessing you wan to see “Home | Mis servicios | Blog” in the menu of every page.
Any way…
In a modular page, if you want to see its siblings in the menu (Home | Mis servicios | Blog), you need to set onpage_menu: false in the header of the modular.
The default value is onpage_menu: true, which means Quark will show the child modules in the menu.
Since the child modules are not visible in the onpage_menu of Home, I’m guessing you have set the following in the header of the child modules of Home: visible: false. This will cause the module not to be shown in the so-called onpage_menu of the modular.
As said before, don’t set properties visible and routable in the header of pages, unless you know what you are doing. Which is not currently the case…
In short:
Set onpage_menu: false in header of each modular.md
Remove properties visible and routable from each and every page.
Hello @pamtbaau
Thanks a lot, I followed your instructions and it worked!
I was checking for these “onpage_menu” concepts on the docs (to check for more that I can learn, like these) and found this similar issue (that you also solved!) which I had not seen before and that extends this topic even more: Menus & Modular pages leaving it here in case it can help someone else!