Block Exclude Pages

Component ID

2807519

Component name

Block Exclude Pages

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

8339

Component created

Component changed

Component body

This module adds an exclude pages filter for blocks.

To exclude specific pages after the wild card or in between wildcards, simply prefix the path pattern with a prefixed '!' in the block page visibility configuration.

This works for visibility set to "show for the listed pages", in this case, the exclude paths will hide the block on pages that match the despite the wildcard set to show.

Or the other way around, if the page list is set to "hide for the listed pages" the excluded paths will show the block on pages where the pattern matches despite the wild card set to hide.

Basic example where a wildcard is used to display the block on pages under the user path:

  /user/* <-- this will make the block visible on all pages under the path.

But let's say you want to exclude a specific page or another path directory under the path "/user/?":

  !/user/jc <-- now you will be able to specifically exclude the "jc" page

or/and:

  !/user/jc/* <-- exclude on all pages under "jc/?"

Happy Coding!