bootic.net: menú para mostrar tipos de productos (si link es colección)

<ul class="nav"> {% for link in menus.main.links %} <li class="{{ ' current' | if_current_page: link }}"> <a href="{{ link.url }}">{{ link.title }}</a> {% if link.product_types.size > 0 %} <ul class="subnav"> {% for tipo in link.product_types %} <li class="{% if product_type == tipo %} current {% endif %}"> <a href="{{ link | typed_collection_path: tipo }}"> {{ tipo.name }}</a> </li> {% endfor %} </ul> {% endif %} </li> {% endfor %} </ul>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.