I don’t think the bootstrap theme has these options if that is what you mean. These would have to be added to the partials/navigation.html.twig logic in the bootstrap theme.
That’s the place where i was trying to implement this, when i put in the it does the work.
But i’m trying to control this from within the admin or frontmatter to let the user control this.
I’ve tried in Frontmatter
menuoptie:
divider:‘true’
and in mij navigation.html.twig
{% if page.menuoptie.divider %}<li class="divider"></li>{% endif %}
But that doesn’t do the job…
Should this be possible with something like this anyway ?
If you add an option to the page frontmatter, you retrieve it using page.header.* not just page.*. So page.header.menuoptie.divider should get the value.
I’m able to check on the {{ page.header.menuoptie.divider }} if added to the page frontmatter
But…
I think the page header will only be ‘filled’ when the page is active/visible
I need this variable when processing the menu for the site to create the Bootstrap divider in the navbar.
Thanks for your reply, but i’m not searching for pages…
All i want to do is just ‘parse’ the menu.html.twig and use the {{ page.header.menuoptie.divider }} to place the bootstrap devider for the dropdown menu.
to create something like this:
If the CSS frontmatter contains menuoptie:
divider: true