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:
- Show all available regions
- No Sidebars
- Remove Body regions (Header and Footer remain)
- 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
- Enable the module (clear the cache if something isn't showing).
- Set permissions for the users roles that should be allowed to override regions.
- Set defaults on each node content type for how regions should display on the Content Type's "Edit" page.
- Edit a theme's settings and choose which regions belong to "header", "sidebar", and "footer" sections.
Project information
- Project categories: Content display
25 sites report using this module
- Created by segovia94 on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
1.0.0-alpha7
released 21 May 2024
Works with Drupal: ^8.8 || ^9 || ^10 || ^11
Install:
Development version: 1.x-dev updated 21 May 2024 at 22:47 UTC




