I can't find the provided Disqus comments block (one that displays the comment form and then lists any existing comments for that node - like the field formatter does). I have a disqus field for my content type, rendering the field works just fine.

The project description only mentions:

Alternatively disqus comments can be used on Blocks. You will first need to configure the disqus comment field for any entity sub-type.

That's not too clear and I see no options that would appear to enable block functionality. Any further pointers? Thanks!

Drupal 8.5.3.

Comments

danbohea created an issue. See original summary.

alexgreyhead’s picture

I appreciate this help request is ~18 months old but, in case it helps, it seems that there probably isn't a separate comments block - at least not one I can find in the code.

The only way to add Disqus comments to a node or other entity at this time is to add the Disqus field.

Hopefully this helps someone :)

/Al

noah’s picture

In case anyone needs it in a block, the functionality is achievable with Views (to the extent that I'm not really sure the module even needs to provide its own block, but there may be other factors involved that I'm not aware of). This worked for me:

  1. add a Disqus field to one or more content types
  2. move the new field to "Disabled" on "Manage display" for those content types
  3. create a new View mode called "Comments"
  4. enable the new view mode for each relevant content type at the bottom of "Manage display"
  5. for the "Comments" View mode, disable everything except the Disqus field
  6. create a view and add a block display
  7. in the view's "Advanced" section, add a Contextual filter for "Content ID": for "When the filter value is not available", select "Provide a default value" and then "Content ID from URL"
  8. in the view's "Format" section, choose to show "Content" and choose View mode "Comments"

This should provide a block that shows only the comments field from the current node. Note that you can probably skip the "View mode" stuff and have the view show "Fields" and select the Disqus field—I haven't tried that, but I can't think of a reason it wouldn't work.

gaurav.kapoor’s picture

Status: Active » Closed (outdated)

The suggestion provided in #3 is the workaround for now.