Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paginator #367

Open
Tartali opened this issue Feb 15, 2022 · 1 comment
Open

Paginator #367

Tartali opened this issue Feb 15, 2022 · 1 comment

Comments

@Tartali
Copy link

Tartali commented Feb 15, 2022

Hello, how can I use the paginator in the comments? I didn't see this in the documentation.

@danirus
Copy link
Owner

danirus commented Apr 29, 2022

Hi Tartali, sorry for the late reply.

The paginator is implemented in a different branch. But I decided not to merge it here but rather fork the project from that branch in a new repository django-comments-ink.

It's still under development, and doesn't have docs yet, but maybe you can use the README.md file of the demos/project-quotes to setup that demo and see how the paginator is used. I wouldn't use the app in production yet, it's almost done but not finished yet.

The main differences between django-comments-xtd and django-comments-ink is that the latter:

  • Does not use external frontend dependencies (doesn't use Twitter-Bootstrap nor React).
  • It comes with two new models CommentReaction and ObjectReaction. The first to allow users to send reactions to comments, and the second to send reactions to objects (like blog stories). The idea is to allow to users not only to send comments to a blog post but also to send reactions to the blog post.
  • The aforementioned CommentPaginator.
  • Comments can be folded (so far only those at level 0 are easily foldable, the rest will be foldable via JavaScript), and pagination takes into account when comments are folded. I hope to get feedback on this.
  • New vanilla JavaScript implementation to add comment preview, comment post, and comment reactions to the frontend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants