octobercms - How to create dynamic submenu in October CMS using Static Pages? -




there's lot of static pages , subpages in project. couldn't find how create dynamic submenu in october cms using static pages plugin.

site/menu-items.htm

<ul class="{{ class }}"> {% item in items %}     <li          class="{{ item.isactive or item.ischildactive ? 'active' : '' }}          {{ item.items ? 'dropdown' : '' }}"     >         <a              {% if item.items %}class="dropdown-toggle" data-toggle="dropdown"{% endif %}              href="{{ item.url }}"         >             {{ item.title }}              {% if item.items %}<span class="caret"></span>{% endif %}         </a>          {% if item.items %}             {% partial 'site/menu-items' items=item.items class='dropdown-menu' %}         {% endif %}     </li> {% endfor %} 

layout

{% partial 'site/menu-items' items=staticmenu.menuitems class='nav navbar-nav' %} 





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -