Discussions

Ask a Question
Back to all

Filter Tag with with_scope doesne't work

Hi,
i got a problem while trying to filter my blog entries through with_scope. In wagon my filter system it worked quiet well. But when i deploy it to my locomotive site it won't filter these entries anymore.

Here is my Code:

{% assign currenttag = params['tag'] %}
{% with_scope tags: currenttag %}
{% paginate contents.blog by 5 %}
{% for post in paginate.collection %}

{{ post.text | truncatewords: 50 }}

Weiterlesen

{% endfor %}

{% if paginate.previous_page %}

arrow_back

{% endif %}
{% if paginate.next %}

arrow_forward

{% endif %}

{% endpaginate %}
{% endwith_scope %}

Discussions

Discussions are available on the Pro Plan.

A community forum for your users.