{% set filterTags = app.request.get('tags') %} {% if filterTags|length > 0 %} {% set filterTags = filterTags|split(',') %} {% else %} {% set filterTags = [] %} {% endif %} {% set tagText = '' %} {% for i, filterTag in filterTags %} {% set tagText = tagText ~ blogTags[(filterTag)] %} {% if i+1 != filterTags|length %} {% set tagText = tagText ~ ', ' %} {% endif %} {% endfor %} {% if not tagText %} {% set tagText = 'sorting_any'|trans|title %} {% endif %}