update + add list_taxonomy

This commit is contained in:
2019-02-21 04:02:36 +01:00
parent 3791a9f435
commit c66917c9a0
13 changed files with 98 additions and 65 deletions
@@ -1,8 +1,23 @@
{% 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' %}
{% 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 %}