Implement alter hook for the HTML wrapper id

Created on 29 June 2022, almost 3 years ago
Updated 9 January 2025, 3 months ago

Problem/Motivation

The AJAX Comments module implements its own logic for wrapping HTML markup in wrappers, so the HTML can be manipulated using AJAX requests by its id. However, for atypical comment setups this HTML wrapper id has to be manipulated to fit the use case. For an example, see Don't rebuild the entire comment field/thread when posting a comment Needs work

Proposed resolution

Implement alter hook for the HTML wrapper id

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None.

API changes

The AJAX Comments HTML wrapper id may now be altered.

Data model changes

None.

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇳🇱Netherlands idebr

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.

  • Looking for the same issue. Bumped into your thread. Thanks for creating it. Looking forward for solution. Thanks for the info I will try to figure it out for more. Thanks to this article I can learn more. Expand my knowledge and abilities. Actually the article is very real. Thanks for sharing. I found a lot of interesting information here. A really good post, very thankful and hopeful that you will write many more posts like this one.

  • The proposed resolution for the AJAX Comments module suggests implementing a hook to alter the HTML wrapper ID. This will provide more flexibility for custom comment setups, where the default wrapper ID may not fit. The remaining MyACUVUE Rewards tasks are to write a patch, review it, and commit the change. There are no UI changes, but the API will now allow developers to modify the wrapper ID to improve AJAX functionality and avoid rebuilding the entire comment field.

Production build 0.71.5 2024