Description of the need
Right now the mobile menu toggle text is hardcoded (though translated) as Menu
. Does it seem reasonable to folks to allow that text to be adjusted on a per menu block basis? (ie. when configuring the block, it defaults to Menu
but can be overwritten)
$data['content']['#prefix'] = theme('menu_toggle', array(
'enabled' => $config['toggle'],
'id' => $id,
'text' => t('Menu'),
));
I am considering a case where there are potentially two toggles (in different parts of the page) and it would be helpful to be able to use different language for each. At first I thought I'd just override theme_menu_toggle
but I really don't have enough information to grab onto inside that function to know much about the particulars of the menu.
If we add this, it could only appear underneath the "Display menu toggle..." option if it was selected:
Recent comments
Hello, @yorkshirepudding! Thanks a lot, I got it, all sorted out.
My layout template (layout--blog.tpl.php) doesn't work
Hi @Gnome and welcome to Backdrop When I create custom layout templates I put them in /layouts/custom/my_layout Note: you can split modules and layouts between contrib and custom...
My layout template (layout--blog.tpl.php) doesn't work
This post explains how to do this in Drupal 7. In Backdrop, File Entity is already part of core. You will need to download and install module Views Field View. https://drupal.stackexchange...
I Need to Display an Image in a View that was Uploaded to a Webform