{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags(of_page, children_only) : taxonomylist.get() %} {% if taxlist %} {% for tax, value in taxlist[taxonomy] %} {% set label_class = uri.param(taxonomy) == tax ? 'label-primary' : '' %} {{ tax }} {% endfor %} {% endif %}