We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

URL Query in collections tag

Rezuan Kassim September 17, 2020 by Rezuan Kassim

Hi, Currently I have items collection and I am displaying it

{{ collection:items }}
    // some html here...
{{ /collection:items }}

So I was wondering whether I can add filter according to my url parameter that I get from get:recommend because I have items?recommend=true in the url. For example:

{{ collection:items {if (get:recommend) recommend:is="true" /if} }}
    // some html here...
{{ /collection }}
>>>>>>> Unanswered <<<<<<<
7 Replies