Muut Archive Legend
@Muut · Joined 9 years ago · 18337 posts · 3878 topics · 137 reputation
Badges
Recent posts
-
My first impresion on installing Grav
· 11 years ago
Hello folks, I have never used grav before and I'd like to share my first time impression on installing grav. Hopefully it will be useful for the developer to improve the app Downloading the grav is
-
Modular submenu
· 11 years ago
You could have a special if check for a particular parent page so you perform your modular logic only on pages you choose.
-
Modular submenu
· 11 years ago
but what if i want to check the structure from 2nd or certain level ...not from root?
-
Modular submenu
· 11 years ago
This macro in Antimatter loops through all the pages and even goes into the children in order to build a dropdown-capable menu. https://github.com/getgrav/grav-theme-antimatter/blob/develop/template
-
Modular submenu
· 11 years ago
{% set collection = page.find('/services').collection %} <ul class="navigation"> {% for page in collection %} {% if page.visible %} {% set activepage = (page.active) ?
-
Modular submenu
· 11 years ago
{% set collection = page.find('/services').children %} <ul class="navigation"> {% for page in collection %} {% set activepage = (page.active) ? 'active' : '' %} <li><a c
-
Modular submenu
· 11 years ago
yeah, sorry for that / but problem is, ive got {% set collection = page.find('/services').children %} and my services folder is modular listing of separate services and one of them is also modular par
-
Modular submenu
· 11 years ago
Not sure 100% want you want, but take a look at this in the Antimatter theme: https://github.com/getgrav/grav-theme-antimatter/blob/develop/templates/modular.html.twig#L30-L47 You could probably adap
-
Modular submenu
· 11 years ago
my subnav code: {% set collection = page.find('/zakroky').collection %} <ul class="navigation"> {% for page in collection %} {% if page.visible %} {% set activepage = (page.active)
-
Modular submenu
· 11 years ago
is it possible to create submenu from modular pages? Got side navigation like Services > One collection of services > list of additional infos , and am unable to display it