- Merge request !8Issue #3332865: Update README.md file according to README.md template → (Merged) created by shubham rathore
- 🇺🇸United States erutan
I've been trying to get this module to work and just happened to stumble across the following instructions in another issue, https://www.drupal.org/project/ajax_comments/issues/3332852 📌 Implement hook_help() RTBC
Create a comment form template override: To customize the comment form and add AJAX functionality, you will need to create a template override. Copy the comment form template file (comment.html.twig) from the modi templates directory and place it in your theme templates directory. Rename it if necessary to match the naming conventions of your theme.
Modify the comment form template: Open the comment form template file in your text editor and make the following modifications:
a) Add the ajax-comments-form CSS class to the element to identify it for AJAX processing.
b) Add a submit button with the ajax-submit class to trigger the AJAX submission.
c) Optionally, you can customize the form markup, fields, and other elements according to your requirements.Add JavaScript code: Create a JavaScript file for your custom theme or add to an existing JavaScript file in your theme.
That is not just install as any other module and you're good to go. The readme file and project description should also be updated to account for this.
- First commit to issue fork.
-
idebr →
committed d2e8267a on 8.x-1.x authored by
Shubham Rathore →
Issue #3332865 by Shubham Rathore, idebr, Charchil Khandelwal: Update...
-
idebr →
committed d2e8267a on 8.x-1.x authored by
Shubham Rathore →
- Status changed to Fixed
6 months ago 7:23am 29 July 2024 Automatically closed - issue fixed for 2 weeks with no activity.