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
I've moved this to How To and Troubleshooting as more people will see it here. I've also put the code in a PHP code block to make it more readable.
Filter view on date
@xorgev Thanks for linking to this video. It is a good one that I had not seen before. There are lots of resources on the Internet for Backdrop CMS and it is challenging to figure out how they...
Suggestion to improve the visibility of helpful content for new users
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?