{% if page.url contains events %} {% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %} {% set taxlist = taxlist|filter(page => page.header.event.start is defined) %} {% else %} {% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %} {% endif %} {{ page.url }} {{ base_url }} {{ base_url ~ "/events"}} {% if taxlist %} {% for tax,value in taxlist[taxonomy] %} {% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : 'label-secondary' %} {{ tax }} {% endfor %} {% endif %}