Posted by willvincent on January 30, 2013 at 5:03am
7 followers
Jump to:
| Project: | Mobile Friendly Navigation Toolbar |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Similar functionality as what is provided by admin_menu, where local tasks are able to be moved into the admin menu toolbar.
It would be really nice to be able to have tabs moved into the navbar.
I know this isn't the proper way to do it, and it would ideally want to be implemented as a behavior, but this snippet of jquery gets it working in at least a very rudimentary way for primary tabs in the content area (this would be the view/edit/etc tabs on a node page)
(function($) {
var $tabs = $('#content').find('ul.tabs.primary');
$('#navbar .section.page-controls')
.append('<ul class="menu"></ul>')
.find('ul')
.append($tabs.find('li').addClass('admin-menu-tab'))
.find('a')
.addClass('tab');
$tabs.remove();
})(jQuery);
Comments
#1
Hi willvincent, we're definitely interested in this functionality. It isn't on our roadmap at the moment, but we're happy to entertain patches. It would be best to have the actions added at the server level, rather than page scraping. You example does suggest the desired behavior well.
#2
If you can point me in the right direction I may be able to put together a proper patch that does this at the server level. Not quite sure where to start digging though.
#3
sun's module Administration menu has this functionality.
http://drupal.org/project/admin_menu
#4
The other option is to help him make that module responsive (last I checked a while ago it wasn't, but that might not be the case any more).