You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without javascript plugin everything looks fine and I'm able to have my custom templates.
When I load it though and add the line <div id="comments"></div>, the templates are gone and it loads it with the default templates which I can't find even in the django-comments-xtd library installation directory.
Has anyone had this experience? Does javascript plugin only comes with no template support and only loads its own default template?
I also have tried this:
<divid="comments">
{% render_xtdcomment_tree for object allow_flagging allow_feedback show_feedback %}
</div>
Still no template loading.
The text was updated successfully, but these errors were encountered:
Hi @hejazizo, Yes, that's the expected behaviour with this particular JavaScript plugin, because it's written using ReactJS and it takes "advantage" of the JSX syntax, but it comes at the expense of not using the Django templates. I like how easy it is to write code the ReactJS framework, but I would also like if the JavaScript plugin used the Django templates.
I have been working for quite some time already in the version 3.0.0 of django-comments-xtd, and recently I created a new django app based on it. I created a new app because there are enough differences to make such a fork. The new app is django-comments-ink, and its JavaScript plugin uses Django templates. The plugin is written in vanilla JavaScript.
There is a Django project that shows how it works, the dci-project-stories. I am still adding features and writing the docs. But the README.md of that project might be enough to start.
Hey,
Without javascript plugin everything looks fine and I'm able to have my custom templates.
When I load it though and add the line
<div id="comments"></div>
, the templates are gone and it loads it with the default templates which I can't find even in the django-comments-xtd library installation directory.Has anyone had this experience? Does javascript plugin only comes with no template support and only loads its own default template?
I also have tried this:
Still no template loading.
The text was updated successfully, but these errors were encountered: