Regions override options for an individual node or view
Regions override defaults for a content type
Theme settings to choose which regions belong to the three sections

Disable regions like Sidebars from appearing on a specific page.

Occasionally it is helpful to allow an editor to choose to remove regions from rendering on a page. An example of this would be for a site that uses sidebars but also uses core's Layout Builder. Since Layout Builder only renders in the content region, an editor may want to disable a sidebar to allow Layout Builder to use the entire page width.

Another use case is for when an editor wants to overtake an entire page so that they can create it from top to bottom with Layout Builder for something unique like a splash page.

Features

  • Entity and Views pages will offer the ability to select how regions will display from four choices:
    1. Show all available regions
    2. No Sidebars
    3. Remove Body regions (Header and Footer remain)
    4. Remove all regions
  • An admin toolbar shortcut link will be available per page to override its regions.
  • Each node edit form can have the option to select its individual override via a field. This field can be removed on a content type's "Manage form display" page.
  • Each content type can have a default region override that will apply to all of its nodes unless a specific one chooses a different override.
  • Each theme can choose which regions belong to the 3 sections "header", "sidebar", and "footer". These are generic groupings used to determine what regions to hide.
  • The Primary Tabs (view, edit, delete) block will never be removed for an editor so that they do not lose the ability to edit content. Also, the Content region will always be displayed.
  • Content Type defaults are saved to config as ThirdPartySettings that can be exported. Each individual node or view override is saved as content so will not be part of config management.
  • Page theme suggestions are offered for each override type.

Basic Setup

  1. Enable the module (clear the cache if something isn't showing).
  2. Set permissions for the users roles that should be allowed to override regions.
  3. Set defaults on each node content type for how regions should display on the Content Type's "Edit" page.
  4. Edit a theme's settings and choose which regions belong to "header", "sidebar", and "footer" sections.

Project information

Releases