This module adds custom div wrappers to selected entities, providing entity-specific markup for easier selection in the Acquia Personalization Engine. It allows administrators to configure which entities receive these wrappers and what attributes, like IDs or classes with tokenized values, are applied. This simplifies targeting elements for personalization by providing consistent and granular markup.
The Acquia Personalization Slots module adds a custom div slot wrapper to
selected rendered entities.
The initial conceptual use-case for this module is to automatically provide entity, bundle and/or content (i.e. uuid) specific markup in your html wrappers to allow for easier element selection from the Acquia Personalization Engine UI. Rather than relying on Product Owners or any other 'non-technical' users to make educated guesses on which wrappers to select, this module provides a simple, yet highly granular way for those users to select consistent markup when targeting elements for personalization.
In the admin UI, you can configure which entities will get the custom div wrappers, definable by entity, bundle and view mode.
In your custom div wrappers you can define which attribute to apply the value to, e.g. id, class, or a custom attribute like data-acquia-perz-slot. Additionally the custom wrapper supports tokens for uuid, entity type and bundle.
Fully configured examples are provided as defaults out of the box:
- id|acquia-perz-slot-[uuid]
- class|acquia-perz-slot acquia-perz-slot-[uuid] acquia-perz-slot-[entity_type] acquia-perz-slot-[entity_type]-[bundle]
- data-acquia-perz-slot|[uuid]
Ask your assistant about Acquia Personalization (Perz) Slots
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
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-beta2 | Pre-release | 9–10 | PHP ^8.0 | Mar 23, 2023 | |
| 1.0.0-beta1 | Pre-release | 9–10 | PHP ^8.0 | Mar 9, 2023 | |
| 1.0.x-dev | Dev | 9–10 | PHP ^8.0 | Mar 1, 2023 |