I am building a pagination layout limiting the content to 10 because, well, it makes sense to break down large amounts of content to smaller chunks.
But as there is so much, a user might want to toggle how many they want to see. But because the pagination limit is done in the twig variables, is there a built in method for updating this on user interactions?
Standard CraftCMS pagination code:
{% paginate craft.entries.section(entry.slug).order('postDate desc').with: ['image'].limit(10) as pageInfo, pageItems %}
Cheers