Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [layout-builder]

Use it for questions about the Layout Builder module.

Filter by
Sorted by
Tagged with
0
votes
1answer
5 views

View block filter by taxonomy term (field)

I am doing some block experiments because I'm new in Drupal and I want to know if I can create a view block to place X(more than one) times in the same page with different results by taxonomy term ...
-1
votes
0answers
8 views

How to add a container that contains 2/3 column layout in Layout Builder?

At the moment I only can add a DIV container via HTML in editor for one column blocks. I want to add this for sections that have more blocks/columns.
0
votes
0answers
16 views

Layout builder - Can't use hook_block_access()

I'm using hook_block_access() so I can apply custom contextual access rules to blocks based on a Node field value of the page being viewed. This works fine unless I build the page using Layout Builder....
0
votes
0answers
12 views

Why are the Layout Discovery core layout templates overriding my custom layout templates?

I've defined this layout in a [mymodule].layouts.yml file; layout_twocol_section: label: 'Two column' path: layouts/twocol template: layout--twocol library: [mymodule]/twocol class: '\...
1
vote
0answers
26 views

Get readable content array keys when using Layout Discovery and layouts templates

I noticed when using Layout Discovery on nodes display modes, the content array looks like this. Compared to the content array without using Layout Discovery which looks like this : A counterpart of ...
1
vote
1answer
49 views

How to make rows of views blocks on a basic page via the Layout Builder, reacting collectively to an exposed filter?

I have to make a page, containing 3 rows with 3 blocks with content teasers. Preferably the page layout should be made through a basic page content type item, through the Layout Builder, so it is easy ...
0
votes
1answer
18 views

Can we display region label from Layouts?

We have a MYTHEME.layouts.yml file which defines regions... layout label: 'Layout Name' path: templates/panels template: layout-template default_region: theregion regions: theregion: ...
0
votes
0answers
21 views

How to add layout or panels to my custom page?

I'm creating custom layout to use for my custom page that has 4 horizontal regions. But i'm not sure how to fetch the layout in my custom page.i added below code in my mycustomtheme.layouts.yml ...
0
votes
1answer
29 views

How to override Core Layout Builder protected function?

I'm not sure the proper method for overriding a protected core function. It's pretty simple with a hook but a little lost here. The goal is to swap out the warning for an error message, works fine ...
3
votes
0answers
74 views

How do I achieve layout nesting?

We have a content type (Page) and a vocabulary (Sections). The content type has a reference field to the vocabulary, and the vocabulary has a reference to a menu. Also, we are interested in being able ...
3
votes
0answers
79 views

How do we programmatically place a section and then a block in that region on module install?

We are looking for the best way to export a defined/built layout with inline blocks and then use that to programmatically set both them during a module install. eg. module install create node in ...
0
votes
2answers
109 views

“Edit layout” form missing revision log message field

When I edit the layout for a given node it is missing a log message field in the revision area. Is anybody else seeing this or am I alone? In trying to diagnose: Where that particular revision log ...
3
votes
0answers
64 views

What is the underlying logic for generating an icon map for a custom registered layout?

There seems to be a dearth of information on the internet about how to generate an icon_map for newly registered layouts in Layout Builder. I've gotten as far as finding a patch file from the project ...
3
votes
2answers
241 views

Delete a block of all layouts

I am using Layout Builder (Drupal 8.7.1) I have a block in several Layouts. How can I programmatically remove all instances of this block and update all layouts without the message "This block is ...
0
votes
0answers
66 views

Is there something I'm missing in getting this to work correctly?

I followed this tutorial but am having some issues. I enabled menu_link_extras and layout_builder on my site. I enabled layout builder on my menu, added a menu link and added a block to that link's ...