getkirby / ideas

This is the backlog of ideas and feature requests from the last two years. Use our new feedback platform to post your new ideas or vote on existing ideas.
https://feedback.getkirby.com
20 stars 0 forks source link

Support limit: false for pages section #577

Open hdodov opened 4 years ago

hdodov commented 4 years ago

I want to display all pages in the main column in the panel without pagination. I've set the other column to sticky and I want the user to be able to freely scroll all entries.

Currently, I can do this with the following blueprint:

sections:
  entries:
    type: pages
    limit: 9999

It would be much more intuitive to have this instead:

sections:
  entries:
    type: pages
    limit: false

It would be great to have this functionality for all other places where you have pagination.

Edit: Related #429

lukasbestle commented 4 years ago

I think this needs an infinite scrolling (lazy-loading) feature to be useful. Loading all items can be a huge performance problem if there are more pages than originally expected after a while of use. Users often don't realize that the reason why the Panel becomes slower or even non-functional is the huge list of pages.

So the best way to implement your idea as well as #429 would probably be a new pagination option that can have the following values:

hdodov commented 4 years ago

@lukasbestle yeah, lazy-loading will definitely be nice. But in my case, I know for a fact that there will be no more than about 50 pages, which is why I wanted to disable the limit. Now that I think of it, perhaps setting something like limit: 60 makes the most sense for my case. But lazy-loading and limit: false will definitely be nice to have.