honzakral / django-threadedcomments

django-threadedcomments is a simple yet flexible threaded commenting system for Django.
BSD 3-Clause "New" or "Revised" License
620 stars 164 forks source link

Pagination #58

Open vinaychandra opened 9 years ago

vinaychandra commented 9 years ago

How can we use pagination, for example endless-pagination with the current threaded comments?

This can be helpful when there are large number of comments and more comments are loaded via AJAX only when required

vdboor commented 8 years ago

Agreed, this would be useful.

Endless pagination requires JavaScript and is thus somewhat opinionated. If you want this feature, I think it would make sense to integrate the UI bits into https://github.com/edoburu/django-fluent-contents/ That app builds on top of threadedcomments to provide a better UI experience. The required API hooks for splitting the comment list should be in here (django-threadedcomments), since that's just backend material. That would allow everyone to create their own UI on top of it. django-fluent-comments is just one of those, designed to provide a nice out-of-the-box experience.

Next to the template tags, some extra ajax views need to be exposed in urls.py