Blocks

This section contains special build blocks to provide the ability to build special content. Blocks are boxes of content that can be displayed in regions on a page. You can adjust position and which page or pages the block appears on.

 

Instructions

Blocks are individual pieces of your site’s web page layout. They are placed inside the regions (see Section 2.1, “Concept: Regions in a Theme”) of your theme, and can be created, removed, and rearranged in the Block layout (admin/structure/block) administration page. Examples of blocks include the Who’s online listing, the main navigation menu, and the breadcrumb trail. The main page content is also a block.

Condition paths

It is recommend to use the normal “Pages” for placement unless you need to negate a path.

The condition plugin builds on top of the Drupal Core Request Path plugin, also known as 'Pages' visibility of Blocks. The latter allows only whitelisted paths OR blacklisted paths to control content visibility while this plugin allows both whitelisted AND blacklisted paths and subpaths.

The module works the same as the Core 'Request Path' (Pages) plugin but allows using "!" as a path prefix to exclude a path. Wildcards can be used in the middle or end of a path.

Note to use the ! operator you will use the top menu option “Request Path Include Exclude“ , verse the normal “Pages” menu item to restrict where the block is placed.