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
This is helpful. When I Googled for suggestions about the error message, I found an old entry in Stack Overflow that suggested increasing max_connections. I passed that along to the hosting...
"SQLSTATE[08004] [1040] Too many connections" error - any ideas?
Thanks for the suggestions. All caches have been enabled from the start. I'm not sure what qualifies as a "complex" view. There are 400-500 pages that include EVA fields. But the vast...
"SQLSTATE[08004] [1040] Too many connections" error - any ideas?
Also, when we had some problems with the Backdrop sites, this is what the server admin did: I have increased the max_connections for mariadb and increased the child_processes for...
"SQLSTATE[08004] [1040] Too many connections" error - any ideas?
Have you enabled caches on the site at: Admin Bar > Configuration > Development > Performance (admin/config/development/performance) Are there any complex Views that...
"SQLSTATE[08004] [1040] Too many connections" error - any ideas?
He said no...
html5-qrcode input