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

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • Module categories: Developer Tools
  • Created by xandeadx on , updated