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.
Experimental project
This is a sandbox project, which contains experimental code for developer use only.
Block Visibility by RegExp extends the block visibility settings in Drupal 7 and allows use Regular Expressions in paths.
Example — you want show block only first level in catalog page (catalog/foo
) and hide block in 2nd and other levels catalog page (catalog/foo/bar
or catalog/foo/bar/baz
). To do this, you need to write path:
#catalog/[^/]+$#
Support multiple paths:
#catalog/[^/]+$#
#search/.*#
and mixed path patterns (drupal classic and regexp):
#catalog/[^/]+$#
search/*
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Module categories: Developer Tools
- Created by xandeadx on , updated