Block Visibility by RegExp

Categories

Component ID

2094427

Component name

Block Visibility by RegExp

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

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/*