FriendsOfSymfony / FOSCommentBundle

Threaded comments for Symfony
http://friendsofsymfony.github.com/
MIT License
462 stars 230 forks source link

Q: Use multiple commentable items on a single page #685

Open kyeno opened 5 years ago

kyeno commented 5 years ago

Hey, I'm wondering if this is possible with this bundle without really hacking around it. I tried just rendering multiple entities and including the async.html.twig under each of them with specified ID, but this approach seems to work only for the first item on the page; others don't get the comment thread nor form. Is this something supported by FOSCommentBundle, or should I write my own JavaScripts for it?

kyeno commented 5 years ago

Hm, after analyzing the original JavaScript it seems quite impossible. I ended up modifying and redoing some parts of the JavaScript to actually make it work.