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.

CommentFileSizeAuthor
#3 disqus-comments-count-2885124-1-D8.patch817 bytesAnonymous (not verified)

Comments

Anonymous’s picture

machour created an issue. See original summary.

Anonymous’s picture

Issue summary: View changes
Anonymous’s picture

Status: Active » Needs review
StatusFileSize
new817 bytes
gaurav.kapoor’s picture

Status: Needs review » Reviewed & tested by the community

  • 016a193 committed on 8.x-1.x
    Issue #2885124 by gaurav.kapoor: Comment count widget ignores user-...
gaurav.kapoor’s picture

Status: Reviewed & tested by the community » Fixed
gaurav.kapoor’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.