Paginate based on data

Paginate based on data

pzh20pzh20 Posts: 66Questions: 15Answers: 0

I want to paginate based on a week number not just the number of entries to display. There might be 5 or 25 entries with a particular week number.

Is this possible?

Regards
Pete

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    It isn't available built in, but you could use the API to dynamically change the page length as you require. Use page.len() to change the page length.

    Another option which might be a bit more tractable is to use filtering. Simply have a different filter applied for each week with paging disabled.

    Allan

  • pzh20pzh20 Posts: 66Questions: 15Answers: 0

    Many thanks, I'll look into both options.

    Regards
    Pete

This discussion has been closed.