add a simple drupal menu at top of screen
It's April 2012 and Spring has sprung out here in the Nevada Desert (it was 99 degrees Fahrenheit yesterday - can you believe that?).
This warm weather always gets me a bit frisky. So after taking Muttley for his Sunday Morning walk and I decided to settle in with a cuppa Char for a bit of website spring cleaning, a new theme and some jolly good tidyup work. As usual, this evolved into a whole day spent tinkering with the nicklitten.com menu system. My aim was to get a 'admin menu' style menu to appear at the top of the page without any theme modifications. I considered editting the PHP of the theme and insert something up there but as I seem to be changing themes every few months I decided a slicker soft-coded approach was the way to go.
I had to jump through some hoops to get my desired result (which is hopefully showing a menu at the top of this very page) so heres the Shady Tale of a Sunday Morning deep in the depths of Drupal Menus:
I played with a few different options before coming up with my final solution:
ADMIN MENU is a totally excellent menu system but is sadly focussed on administration tasks only. Does everything I want it to do - but the developers have decided to focus specifically on 'Drupal administration' menu options when I want the ability to display regular user menu options. Admin Menu provides a theme-independent administration interface (aka.
back-end). It's a helper for novice users coming from other CMS, a time-saver for site administrators, and useful for developers and site builders.
I tried everything but couldn't get it to display user menu options for anonymous users...
Nice Menus kind of did what I wanted and gave me much better control over which Drupal Role could view the menus but I just didn't like the way the menus looked or that fact that it locked me into displaying menus in blocks.
Simple Menu creates a menu bar (very similar to ADMIN MENU) but with NICE MENU type functionality. From all the documentation and various other website reviews this looked to be exactly what I was looking for.
This module creates a menu bar that is displayed at the top of every page. The menu bar is fixed in place and uses jQuery to position the bar, along with handling menu effects and adding IE compatibility. But, after playing with it, swearing at it, spilling coffee ont he keyboard i finally admitted defeat. And then I stumbled across QUICKBAR. It was a kind of Halalujah moment :)
QUICKBAR - a menu bar at the top of the window pane.
This is a simple administration toolbar. It allows you to take any menu and assign it to a role. This menu will be displayed at the top of your page as an administration toolbar.
Within moment of installating and switching it on - I kind of did what I was looking for straight out of the box... This is what I'm looking for. :)
- I want to keep ADMIN MENU active for the ADMIN ROLE USER as its simply excellent for quick access to all the Drupal site admin functions
- I want to keep a DROPDOWN MENU active for regular users and anonymous users so they see a simple clean menu at top of the screen
- I want to keep that top screen menu at the top of every page regardless of where the user is during a PAGEUP/PAGEDOWN session
- I don't want these two menu system to clash
Do I ask to much?
Here is how I did it [click here]