i try to setup a modular page. is there a way to append a section to another section (folder _section1 and inside _section1a and _section1b)
or
hide this section from being displayed in menu.
at the moment i’m not that confident with twig templating but i tried to solve it inside the modular.html.twig with a conditional approach.
section2 for instance should be not in menu. with the onpage_menu: false it is not working but i got it workin with an if statement inside the for loop {% for module in page.collection() %}.
but maybe there is an more intuitive way to solve this.
Your code is all good. I do this kind of tricks all the time. This is sort of power of grav that you can put configuration values in the page header. Anyways, by providing onpage_menu: false I was referring to antimatter and antimatter based templates where this thing works. You may take a look at navigation.html.twig in antimatter and check how it’s done.
i have it. the answer is more or less easy. it has to be a MODULE rather than a PAGE so with “module.header.hidemenu” it works perfect. thinking MODULAR