Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Views Minimum Condition

Security covered Drupal 8–11

Part of the Views ecosystem · 211 projects

View on drupal.org

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.

Depends on

Dependencies of the latest stable release

  • views Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Apr 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
1.0.4 Stable 8–11 Sep 24, 2024
1.0.3 Stable May 10, 2024
1.0.2 Stable Apr 10, 2023