bootic.net: products.html - menú para colección actual con tipos de productos

{% if template == 'products' %} <ul id="shop-catalog" class="menu"> {% for link in menus.catalog.links %} {% if collection == link %} {% for tipo in link.product_types %} <li class="level-two {% if product_type == tipo %} current {% endif %}"> <a href="{{ link | typed_collection_path: tipo }}">{{ tipo.name }}</a> </li> {% endfor %} {% endif %} {% endfor %} </ul> {% endif %}

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.