"Adobe Business Catalyst" 多级液体菜单
"Adobe Business Catalyst" Multi level Liquid Menu
任何人都可以帮助我在 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>
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>
任何人都可以帮助我在 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>
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>