Page count with Repeating Groups

I will try give a more detailed explanation in the evening today

I have the repeating group in a Reusable element. But that can also be the page or group the RG is located.

Custom States

  • first_page
  • current_page
  • last_page
  • current_page_start
  • page_size

Pagination - List of Numbers (plugin)

  • Length of list
    image

Workflow - Pageload

Workflow - Previous (click)

  • Set state current_page to current_page - 1
  • Trigger Custom Event: Calculate current page start

Workflow - Next (click)

  • Set state current_page to: current_page + 1
  • Trigger Custom Event: Calculate current page start

Workflow - Pagenumber (click)

  • Set state current_page to: current_page = current cell page number
  • Trigger Custom Event: Calculate current page start

Data source Repeating group:

8 Likes