Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Controls block visibility by URI Query Parameters. Drupal natively allows blocks to be placed on pages by using their paths, however, this module allows administrators to also display modules based on url query parameters.
- Supports both "All pages except those listed" and "Only the listed pages"
- Can be used in conjunction with page visibility
- Administrator can set both the query parameter and value - the module is just looking for an arg=value pair
Example uses:
- Show a special welcome block whenever URI query includes "welcome=show" (https://example.com?welcome=show")
- Show a special welcome block only on certain pages but not whenever URI query includes "welcome2=hide" (https://example.com?welcome2=hide")
- Show a special welcome block whenever a person comes from, say Google" (https://example.com?referrer=google" along with something like http://drupal.org/node/474940)
NEW:
Added support for enabling or suppressing a context via URI query.
Added "context respect" so blocks enabled via context can also honor the URI visibility (relies on the patch in #2077277: Suggest that we add hook to allow other modules to modify visibility).
Project information
- Module categories: Administration Tools, Content Display
- 286 sites report using this module
- Created by SolomonGifford on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.