loader ajax
This commit is contained in:
@@ -1,22 +1,25 @@
|
||||
{% set taxlist = children_only is defined ? taxonomylist.getChildPagesTags() : taxonomylist.get() %}
|
||||
|
||||
{% macro pageLinkName(text) %}
|
||||
{{ text|lower|replace({' ':'_'}) }}
|
||||
{{ text|lower|replace({' ':'_', 'é':'e'}) }}
|
||||
{% endmacro %}
|
||||
|
||||
{% import _self as macro %}
|
||||
|
||||
{% for tax,value in taxlist[taxonomy] %}
|
||||
<ul class="{{ macro.pageLinkName(tax) }}">
|
||||
{{ tax }}
|
||||
<ul>
|
||||
<span class="cat">{{ tax }}</span>
|
||||
|
||||
{% set options = { items: {'@taxonomy': {'category': tax} } } %}
|
||||
{% set my_collection = page.collection(options) %}
|
||||
|
||||
{% for i in my_collection %}
|
||||
<li>
|
||||
{% if i.media.images|first %}
|
||||
<li class="{{i.parent.folder}}">
|
||||
<a id="{{i.parent.folder}}" href="{{i.url}}">{{i.title}}</a>
|
||||
{% set image = page.media.images|first %}
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user