Part of the Site ecosystem · 39 projects
This module enhances Acquia Site Studio by providing new conditions to control the visibility of components and elements. It allows for more granular control than the default "hide if no data" option, enabling you to hide or show content based on whether a node uses a specific Site Studio template or if a layout canvas contains a particular component. These conditions can be grouped and chained for complex visibility rules.
The Acquia Site Studio conditions module adds new conditions to use for context visibility.
Components and elements can be controlled via the "Context Visibility" option in their configuration. Sometimes "hide if no data" is not powerful enough to dictate visibility of a section or area of the Layout Canvas. This module provides new conditions for more control over this behavior. Conditions can be grouped together within a context, and contexts can be chained on a component or element in Acquia Site Studio.
The module so far provides two conditions:
- Check if a node is using a specific Template from Site Studio (via the template selector field)
- Check if a layout canvas has a specific component present
Currently only basic setups can be evaluated. For instance, trying to check 'if a component exists' on a layout canvas is top level only. That means that it cannot check for components on a page that are nested several layers deep (Container > Row > Column > Row etc).
This can be useful in situations where you need more granular control. If you use a lot of Views as droppable items in Acquia Site Studio, also check out the Views Minimum Condition module.
Currently tested against Acquia Site Studio version 6.9.x.
Ask your assistant about Acquia Site Studio Conditions
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.
More in the Site ecosystem
Most installed first
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-alpha4 | Pre-release | 8–10 | May 17, 2023 | ||
| 1.0.0-alpha3 | Pre-release | 8–10 | May 17, 2023 |