Custom Block: Banner Override - envris/White-Label-Help-Wiki GitHub Wiki

Brief description

A custom block to override hero banner content on non editable pages


Detailed description

Some pages may be created on the site which are neither nodes or taxonomy terms, these pages cannot be edited the same way, therefor cannot have banner override fields. To add a banner to a non-editable page, we use the Banner Override block.

  1. go to Structure > Block layout > Add custom block in the admin menu
  2. Click on Banner Override
  3. Add a Block description which will help identify this block to admins on the blocks listing page.
  4. In the Path field, enter the internal path of the page you wish to alter the banner of. eg /about/our-organisation
  5. Fill out the override settings part of the form with your override values, then click save
  6. once saved, you will be redirected to a configure block page, this is used to place the block on the site. We don’t need any of these settings, so you can safely navigate away from this page.
  7. Ensure the override settings you entered on the block have taken effect on the desired page.

Fields

The "Banner Override" block has the following fields:

  • Block description : is used for admins to identify the block when listed on the blocks overview page.
  • Path
  • Banner Override

Technical description

This block should never be rendered. It as used strictly to store configurations for overriding content on non editable pages.