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.
Project information
- Project categories: Content display, Developer tools
- Ecosystem: Context
7 sites report using this module
- Created by kevinquillen on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
Development version: 1.0.x-dev updated 17 May 2023 at 17:27 UTC


