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 are a few ways to achieve the outcome, but it does depend on how you want the page displayed. You can also use the Views module to create the Author page, select the author fields...
Backlinks for Entity Reference?
is there a way to automatically show all books linking in to the author record on the page for the author You can do that with Views, for example. Not sure how familiar you...
Backlinks for Entity Reference?
There is a Drupal 7 contrib module that "lets the administrator see all administration pages in her preferred language" and which could be ported to Backdrop: https://www.drupal.org/project/...
Allow admin to select admin language seperate from front end language (multilingual)
@stpaultim – You're right: my approach affects also the main menu. I guess, because menus are also considered as user interface (not as content). @findlabnet – If I didn't miss anything,...
Allow admin to select admin language seperate from front end language (multilingual)
Go to the account edit of the desired user. On the horizontal tab below "Region and Language," select "English" or another language. WFM.
Allow admin to select admin language seperate from front end language (multilingual)