1234567891011121314151617181920212223 |
- {% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
- {% if taxlist %}
- <ul>
- {% for tax,value in taxlist[taxonomy] %}
- {% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
- <li>
- <a class="label {{ label_class }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
- </li>
-
- {% set options = { items: {'@taxonomy': {'category': tax} } } %}
- {% set my_collection = page.collection(options) %}
- {% for i in my_collection %}
- <li>{{i.title}}</li>
- {% endfor %}
- {% endfor %}
- </ul>
- {% endif %}
|