taxonomylist.html.twig 681 B

1234567891011121314151617181920212223
  1. {% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
  2. {% if taxlist %}
  3. <ul>
  4. {% for tax,value in taxlist[taxonomy] %}
  5. {% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %}
  6. <li>
  7. <a class="label {{ label_class }}" href="{{ base_url }}/{{ taxonomy }}{{ config.system.param_sep }}{{ tax }}">{{ tax }}</a>
  8. </li>
  9. {% set options = { items: {'@taxonomy': {'category': tax} } } %}
  10. {% set my_collection = page.collection(options) %}
  11. {% for i in my_collection %}
  12. <li>{{i.title}}</li>
  13. {% endfor %}
  14. {% endfor %}
  15. </ul>
  16. {% endif %}