context admin
context admin
site studio context visibility

Have you ever had to put some Views displays on a page but wanted to hide one or more areas if the View was empty? Is "hide if no data" not powerful enough for some requirements with Acquia Site Studio or do you want to adapt sections of layout with Layout Builder? Sometimes simply 'hiding' a View in its settings is not enough if you have a lot of components or layout displays built around it that are dependent on that View.

Views Minimum is a condition that will evaluate a selected view and its selected display for results and return true or false if the View is empty or not (has at least 1 result). This will make it possible to not only hide the area where the View would be, but also be capable of hiding (or showing) other areas of a page based on this condition.

If your View has other Views attached in its 'No Results behavior' - for instance, showing another View if the current one is empty, this module will check for that too.

You can also set a minimum result count as part of the evaluation (for example, if you only want to display a part of the page if the View had more than X results). Using the Context module you can build as many as you need using this condition plugin and create several custom contexts.

For modules or page building tools like Layout Builder or Acquia Site Studio or similar that can leverage conditions and context visibility, this may just be the tool you are looking for.

Additionally, this module pairs really well with Site Studio Views Element.

Supporting organizations: 
Developed and sponsored by

Project information

Releases