I have a Content Type with a Disqus Field. When creating a new content, I customize the Disqus identifier for this content to "NEWS199" for example.
This works fine when displaying the Disqus Comments widget, as my custom identifier is reflected in the generated JS code :
.. "identifier":"NEWS199","disable_mobile":false, ..
However, when I use the Disqus Comments Count widget, the generated code completely bypass my custom identifier and uses node/NID (in data-disqus-identifier below):
<ul class="links inline"><li class="disqus-comments-num"><a href="/magazine/actu/zitouna-takaful-enregistre-une-belle-performance-en-2016.html#disqus_thread" data-disqus-identifier="node/222" hreflang="fr">Commentaires</a></li></ul>
Attached patch takes care of checking for and using user defined identifier, or defaulting to node/nid.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | disqus-comments-count-2885124-1-D8.patch | 817 bytes | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedmachour created an issue. See original summary.
Comment #2
Anonymous (not verified) commentedComment #3
Anonymous (not verified) commentedComment #4
gaurav.kapoor commentedComment #6
gaurav.kapoor commentedComment #7
gaurav.kapoor commented