Lazy how-to question for people who've created contrib or core layouts - what do you use to make the layout icon? Is there significance to the size of white space around the block regions?
The block system and API in Backdrop is very different from Drupal's. In Backdrop, as in Drupal, modules can define blocks in code (in fact some of the API at this level is the same, with...
Posted4 days 18 hours ago by Alejandro Cremaschi (argiepiano) on:
This was from examining line 2463- of the webform.module, where
// Attach necessary JavaScript and CSS.
$form['#attached'] = array(
'css' => array(backdrop_get_path('module', 'webform...
d'oh. Because of course it is reassigning. Don't mind me...
the correct syntax is
$form['#attached']['js'][] =
backdrop_get_path('module', 'mymodule') . '/mymodule.js';
Comments
I've not created contrib or core layouts but a few custom layouts. For the icon, I changed the appearance of an existing one like https://github.com/backdrop/backdrop/blob/1.x/core/layouts/boxton/boxton... using a graphics editor.
Regarding the white space around the block regions, I'm not sure. Personally, I'd try to visualize the regions not exactly but only approximately.