EXCLUDE AND INCLUDE PAGES IN DRUPAL 8 BLOCK VISIBILITY SETTINGS

The standard configuration of the block visibility page in Drupal 8 allows you to include numbered paths (via "Show for all numbered pages" or exclude numbered paths (via "Hide for all numbered pages"), but you can never include and exclude at the same time, the "Block Exclude Pages" module offers a solution to this.

Consider the following situation: you have a block that must appear on all pages whose URL begins with "/about", with the exception of "/about/me". With just the main Drupal 8 visibility rules, you can't easily make this happen.

With the Block Exclude Pages module installed and enabled, the following visibility rules can be used:

/about/*
!/about/me

(Show for all pages numbered "selected").

The "Block Exclude Pages" module allows you to use "!" character as negation - problem solved!

Have Any Project in Mind?

If you want to do something in Drupal maybe you can hire me.

Either for consulting, development or maintenance of Drupal websites.