I am experimenting with recipes. In my recipe, I create a view with a block and was hoping to add that block to a layout during the install process.
Here is the solution I found.
$layout = layout_load('<machine-name-layout>'); $layout->addBlock('<module-that-created-block>', '<machine-name-of-block>', '<region-to-insert-block>'); $layout->save();
Recent comments
There is now a module to help with this. https://backdropcms.org/project/revision_helper The module allows site editors to select a custom color to display on revisions of nodes, much...
How to make clear to editor if they are on a revision?
So the admin who set up Sendgrid enabled Click tracking. Once disabled, the user password reset system works happily.
user_pass_reset_url
Thanks!
Setting width for main menu showing as hamburger menu, sidebars not displayed
Thank you, that's what I was looking for!
Setting width for main menu showing as hamburger menu, sidebars not displayed
As for the sidebar breakpoint, check core/modules/layout/css/grid-flexbox.css. You should avoid editing the values there, as they will be overwritten next time you update core. Instead,...
Setting width for main menu showing as hamburger menu, sidebars not displayed