Layout Builder Restrictions

Objective
  •  Provide availability to restrict blocks or layouts on the layout edit page.

 

Recipe Type
Status
Proposed
Drupal Version
Module Categories
Recipe Tags
Steps to Build
  1. Enable Module:
    Go to the Extend and enable "Layout Builder Restrictions" module.
    Layout Builder Restrictions 1
     
  2. Go to Structure -> Content types -> From operation column click on the dropdown arrow of required content type ->  click on “Manage display.”
    Layout Builder Restrictions 2
     
  3. Here you will see two different layout option
    Layout Builder Restrictions 3
    A. BLOCKS AVAILABLE FOR PLACEMENT (ALL LAYOUTS & REGIONS)
    Once you open this option, you will see options to blacklist/whitelist/show all block for each and every available block.
    Layout Builder Restrictions 3
    Here, you will get 3 options for each block type.
    i) Allow all existing & new <block types> blocks:  To get list of all blocks.
    ii) Allow specific <block types> blocks: To whitelist the blocks.
    iii) Restrict specific <block types> blocks: To Blacklist the blocks
    Layout Builder Restrictions 5

    B.  LAYOUTS AVAILABLE FOR SECTIONS
    Once you open this option, you will see the option to restrict layout.
    Layout Builder Restrictions 6
    Here, you will see 2 options to restric layouts.
    i) Allow all existing & new layouts:  To get a list of all available layouts.
    ii) Allow only specific layouts: To whitelist the specific layouts.
    Layout Builder Restrictions 6

 

Conclusion
  • As we can restrict any block(s) or layout(s), this helps the content editor or site builder to focus on only important/needed block(s) or layout(s).
  • If any website has lots of block(s) or layout(s) which are not in use, then this module is the best option to restrict block(s) or layout(s).
Supporting Organizations
Participants