I have a view that pulls in data for multiple content types. Some content types have comments open and some have it closed. However, in the view - ajax comments appear for all results and on those where the comment is supposed to be closed, it throws an error when the form is submitted. Is there a way to exclude the ajax comment form in the view for content types where comments are closed/hidden?

Comments

djween created an issue. See original summary.

djween’s picture

Issue summary: View changes
maxplus’s picture

Hi,
I have the same issue.
@djween: how did you solve this?

djween’s picture

@maxplus I am using messages stack to log events. Then I have a view which pulls the messages content in to a feed on the site. I have a
field: (Content entity referenced from field_node_ref) Content: AJAX Add Comment
and
relationships: Entity Reference: Node reference

The 'Node reference' is from part of the setup in the messages stack so if you aren't using message stack, none of this may make sense to you.
If you are using it, this way seems to be able to pull in ajax comments when on content type that has comments open. For vanilla views setup, I don't know offhand if there is a way. Hope this helps.