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
Post a Comment