Show comment form directly instead of 'add new comment' link

Created on 4 March 2015, almost 10 years ago
Updated 2 January 2025, 8 days ago

Since I'm not sure if I'm doing something wrong, or if what I want is just not possible, I started this support request.

What I'm trying to do:
I've created a view with multiple rows with field display. It displays nodes of a certain types, and for all nodes its comments. Below every row with their comments I want to show the comment form (and not the 'Add new comment'-link), and posted comments should be added directly by ajax.

I tried to add the default field 'Content: List of comments', and that works pretty good, except that it is not posting comments directly via ajax. A refresh is required. That's where the 'ajax comments'-module is needed.

Next I tried to use the field 'Content: AJAX Add Comment'. This will create an 'Add new comment'-link, which shows the comment form after clicked, but that's about it. No comments, and I don't see the comment I just posted, so refresh required.

Finally I tried using both fields from above, with different settings, but I can't get the result I want: showing comments, showing comment forms and using ajax to directly see the posted comment.

Am I trying to do the impossible, or is there just a simple error in my attempts to make it work? Or is there a simple solution to make it work?

💬 Support request
Status

Postponed: needs info

Component

Views integration

Created by

🇳🇱Netherlands ReneW

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • To achieve your goal of displaying comments, comment forms, and using AJAX for immediate updates in Drupal, ensure your view and comment settings are configured My iTero Login correctly. Use the AJAX Comments or Inline Ajax Comments modules for better integration. If you're comfortable with custom coding, add AJAX callback events to dynamically update the fields and markup.

Production build 0.71.5 2024