2016-06-09 52 views
0

任何人都可以幫助我在Adobe業務催化劑中創建多級菜單。「Adobe Business Catalyst」多級液體菜單

這裏是單級菜單代碼:

{module_menu render="collection" menuId="1425822" template="" collection="menu2"} 
<ul> 
    {% if menu2.items %} 
    {% for i in menu2.items %} 
    <li class="{{i.CSS class name}}"><a href="{{i.url}}">{{i.label}}</a> </li> 
    {% endfor %} 
    {% endif %} 
</ul> 

回答

1
Just like that :) 


    {module_menu render="collection" menuId="1558121" template="" collection="menu1"} 
       <ul> 
        {% if menu1.items %} 
        {% for i in menu1.items %} 
          <li class="has-sub"><a href="{{i.url}}">{{i.label}}</a>{% if i.items %} 
           <ul> 
            {% for j in i.items %} 
            <li><a href="{{j.url}}">{{j.label}}</a> {% if j.items %} 
             <ul> 
              {% for k in j.items %} 
              <li> 
               <a href="{{k.url}}">{{k.label}}</a> 
              </li> 
              {% endfor %} 
             </ul> 
             {% endif %} 
            </li> 
            {% endfor %} 
           </ul> 
           {% endif %} 
        </li> 
        {% endfor %} 
        {% endif %} 
       </ul> 
+0

謝謝你)。它工作正常 – Nehemiah