This module ensures that JavaScript functionality works correctly on content dynamically loaded from Acquia Content Hub, even when that content is added to the page asynchronously by Acquia Lift. It achieves this by re-attaching Drupal behaviors to the newly loaded content, allowing features like tabs or drawers to function as expected.
Make Acquia Content Hub easier to use
ACH Attach JS is a module that helps to better integrate a Drupal site with Acquia Lift and Acquia Content Hub.
When Acquia Lift adds content to the page (asynchronously) from Acquia Content Hub, your js does not automatically run on the new markup. That's a problem if the new content has tabs or a drawer or a save flag or any other feature that requires javascript. This module solves that problem.
The maintainer has not worked with Acquia Lift/Personalization since 2019. New maintainers with current working knowledge of Acquia Lift/Personalization would be much appreciated.The Library
ACH Attach JS provides a library that calls Drupal.attachBehaviors on content
that is added to the page from Acquia Content Hub.
Attaching the Library
There is a sub-module called ACH Attach JS Attacher that provides a
configuration form for attaching that library at the paths of your choice,
just like you can configure at what paths a Block should display.
Alternatively, you could attach the library "manually" in your theme's .info
file, in a preprocess function, in a twig template, etc.
Ask your assistant about ACH Attach JS
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 8.x-1.0-alpha6 | Pre-release | 9–11 | Jun 4, 2024 | ||
| 8.x-1.0-alpha5 | Pre-release | 9–11 | Apr 30, 2024 |