{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %} {% macro pageLinkName(text) %} {{ text|lower|replace({' ':'_', 'é':'e'}) }} {% endmacro %} {% import _self as macro %} {% for tax,value in taxlist[taxonomy] %}