Drupal is a registered trademark of Dries Buytaert
cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)!

condition_query

842 sites Security covered
View on drupal.org

Conditional Plugin (Visibility) by Query Parameters

Extends conditional plugin API to add URI Query Parameters to control the content visibility. Drupal core conditional plugin API provides the ability to control the visibility of content (block) using paths, etc. This module adds new conditional plugin to allow administrators to control the visibility of content using url query parameter.

This plugin can be used to show or hide blocks, contents etc based on query parameter. It supports query parameter with array ex: ?visibility[]=show

List of features using condition plugins,

  • Block
  • Rules
  • Page manager
  • etc

Example usage:
1) Display blocks if query parameter has "visibility=show" ( http:://www.example.com/?visibility=show )
2) Hide all blocks (Using "Negate the condition" checkbox) if query parameter has "app=true" ( http:://www.example.com/?app=true)

Activity

Total releases
1
First release
Feb 2025
Latest release
1 year ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
8.x-1.5 Stable Feb 19, 2025