Version 1.0
Returns the value of the name field of the filter.
{% for item in response.filters %}
<p><b>{{item.name}}</b></p>
{% endfor %}
{{ response.filter.name }}
Color
Version 1.0
Returns the value of the field field of the filter.
{% for item in response.filters %}
{% for item2 in item.values %}
<input type="checkbox" fltid='{{item2.id}}' flttype='{{item.field}}' {% if item2.id in activeFilter %} checked {% endif %} >
{% endfor %}
{% endfor %}
{{ response.filter.field }}
color
Version 1.0
Returns the value of the selected_id field of the filter.
{% set activeFilter item.selected_id|split(',') %}
<ul>
<li><a href="#" {% if item2.id in activeFilter %} class='active' {% endif %} >{{item2.name}}</a></li>
</ul>
{{ response.filter.selected_id }}
1,2,3
Version 1.0
Returns the value of the values field of the filter.
{% for item in response.filters %}
{% for item2 in item.values %}
<label class="clearfix{% if item2.id in activeFilter %} active{% endif %}" >
<input type="checkbox" fltid='{{item2.id}}' flttype='{{item.field}}' {% if item2.id in activeFilter %}checked{% endif %} >
<span>{{item2.name}}</span>
</label>
{% endfor %}
{% endfor %}
{{ response.filter.values }}
array (id, name)