12345678910111213141516171819202122 |
- {% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
- {% macro pageLinkName(text) %}
- {{ text|lower|replace({' ':'_'}) }}
- {% endmacro %}
- {% import _self as macro %}
- {% for tax,value in taxlist[taxonomy] %}
- <ul class="{{ macro.pageLinkName(tax) }}">
- {{ tax }}
- {% set options = { items: {'@taxonomy': {'category': tax} } } %}
- {% set my_collection = page.collection(options) %}
- {% for i in my_collection %}
- <li>
- <a id="{{i.parent.folder}}" href="{{i.url}}">{{i.title}}</a>
- </li>
- {% endfor %}
- </ul>
- {% endfor %}
|