Load More in repeating group [SOLVED]

Hi,

I have a repeating group where I display 5 articles at a time, Is it possible to add a button called load more which does the following:

  1. load 5 more articles and show them below the first 5
  2. Since the total number of articles are now 10, Is it possible to dynamically increase the height of the repeating group to show all 10 articles.

Yep, all of those things are possible… (and simple)…

Just set a custom state (number) with a default value of 5…

Set your RG data source to show only the items until that custom state value…

When the Show More button is clicked, just add 5 to that custom state value…

Use a conditional so that once all the RG entries are shown, the Show More Button is hidden…

If your Responsive layout settings are correct, all the relevant heights (the RG and any container elements) will adjust accordingly.

1 Like

thanks, will check it out

This topic was automatically closed after 70 days. New replies are no longer allowed.