Statamic v2 - Setting Dynamic Limit for Collection

Hello, i have blogs collection on a page. I am using pagination for it and i set limit to be 10 as hard coded value.

My ideal goal for this is to have select menu where visitors could choose how many blogs they wish to see, so if they chose 20 from select menu, then page will show 20 entries, not 10, so that limit must change to 20.

So i have in my code - {{ collection:blogs limit="10" :taxonomy:category="slug" paginate="true" as="posts" }}

Plan is to have limit="{customLimit}"

So on my screen i could use something like {{customLimit="20"}} and in that moment, limit will also be 20, so dynamic.

How could i come to this? Thanks a lot!

>>>>>>> Unanswered <<<<<<<
2 Replies