18 replies [Last post]
qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554
Was this information Helpful?

Hi all,

Admin Menu is a great enhancement to Drupal administration:
http://www.ubercart.org/docs/user/599/administration_menu

I don't like the way it renders the Ubercart administration much.
This is due to the extra step, the slick overview pane. It makes the DHTML menu tree unnecessary deep, and easy to slip out with mousemovements.

Is this something that can be fixed, without making the overview's disappear?

Kees

Shawn Conn's picture
Offline
Administrator
Joined: 08/07/2007
Juice: 916
Re:

I'm checking out the menu on livetest and it looks I've encountered a bug while checking out what you mean. Any submenu is automatically expanded at a depth of greater than 2. Anyway, back to your topic, admin_menu creates the menu by traversing the admin menu tree and creating submenus when in finds a new level of depth. The way to change this would be to change the configuration URLs so that the overview page is at the same depth as the other edit URLs. For example something like:

admin/store/settings/cart
admin/store/settings/cart/edit
admin/store/settings/cart/edit_panes (normally admin/store/settings/cart/edit/panes)
admin/store/settings/cart/edit_block (normally admin/store/settings/cart/edit/block)

I don't know if these sorts of changes would break the regular Ubercart admin UI as it stands. If it does, we probably shouldn't mess with ubercart menus. This could always be implemented in another module that adds "shortcut urls" to the ubercart administration menu.

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re:

Yeah, the problem here is that we're using local tasks to have a tabbed interface to complex configuration menus. I'm not opposed to reworking them again, although I kind of like the way they work now. Eye-wink

Perhaps a patch ought to be written for the admin module itself to make it a little smarter in addressing these situations.

qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554
Re: Re: Re:

I agree, I like it very much the way it is now from an Ubercart point of view. I think this should become the facto standard in building advanced admin menu's for Drupal modules.

I cannot see how a patch to the admin_menu module is solving this "issue"?

Thanks for replying.

Kees

qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554
Re: Re: Re:

I'v just got another reason to get this solved, one of my cliens screen is not big enough to show the deeply nested Ubercart dropdown menu. (standard 1024 x 768). I'm eager to keep using admin_menu.
Help is greatly appreciated.

I've got some programming skills, but no clue where to start here.

Thanks in advance,

Kees

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Re: Re: Re:

Is the store links block not working for you? I know it's not the full admin menu, but it's super handy for Ubercart administration. Your clients will probably be most interested in that anyways.

qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554
Re: Re: Re: Re: Re:

Hi Ryan, yes it is working fine for me in a technical way.

In my opinion it's just plain ugly to have more than one admin menu. They look different and drop-down on top of each other in some cases.

I'm a perfectionist in things like these, that might be part of the problem. Eye-wink

Admin_menu is a miracle for Drupal administration (my opinion), I like to see Ubercart administration added to it nicely.

Shawn Conn's picture
Offline
Administrator
Joined: 08/07/2007
Juice: 916
admin_menu.css

Aye, 1024x768 is a killer for some long admin menus. An easier solution for both these problems might be to mess around with admin_menu's CSS. Placing admin_menu.css in your theme directory will override default CSS rules for admin_menu. I'd try out that route before messing with admin_menu's code.

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

psynaptic's picture
Offline
Early adopter... addicted to alphas.Not KulvikTheminator
Joined: 08/28/2007
Juice: 731
I'm using Simple Menu by

I'm using Simple Menu by m3avrck which works perfectly for me. You can rearrange the menu structure so you should (if I understand what you are saying) get exactly what you need with the Simple Menu.

qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554
Re: I'm using Simple Menu by

Nice tip, I'm gonna look into it, thanks!

psynaptic's picture
Offline
Early adopter... addicted to alphas.Not KulvikTheminator
Joined: 08/28/2007
Juice: 731
Re: Re: I'm using Simple Menu by

Hey, no worries. Let me know if it's what you needed.

sun (not verified)
sun's picture
Übercart vs. Admin Menu vs. SimpleMenu

Just found this thread via Google... thank you all for your kind words about admin_menu - I did not yet receive that much feedback about the module.

I have committed a patch that should have fixed the 3rd and 4th level hovering bug.

If Übercart needs more customizations for admin_menu, I'm all open to discuss possible ways to achieve them. Perhaps a new module hook or maybe even hard-coded changes, whatever... However, please file an issue for that in the queue, so others are able to participate, too.

greetings,
Daniel

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Excellent. Thanks for

Excellent. Smiling Thanks for stopping in and posting. I'll try to check into the local task issue and maybe post something to the tracker on d.o.

Shawn Conn's picture
Offline
Administrator
Joined: 08/07/2007
Juice: 916
Re: Übercart vs. Admin Menu vs. SimpleMenu

Thanks for the awesome module, BTW. Admin_menu has made drupal administration so much less tedious. I saw the the v1.2 update the other day and updated all our sites to that.

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

psynaptic's picture
Offline
Early adopter... addicted to alphas.Not KulvikTheminator
Joined: 08/28/2007
Juice: 731
Re: Re: Übercart vs. Admin Menu vs. SimpleMenu

I tried admin_menu but for some reason (can't remember what exactly) I went with simple_menu which does the same thing. I don't know if admin_menu crates a regular Drupal menu so you can add/remove items at will but this is one of the key features I need for my dropdown menu.

Shawn Conn's picture
Offline
Administrator
Joined: 08/07/2007
Juice: 916
admin_menu/simple_menu

According to the admin_menu drupal project page, it looks like the plan is to merge both this project into one with the result being some type of Drupal menu renderer.

-Shawn Conn: If the Name Don't Rhyme It Ain't Mine

psynaptic's picture
Offline
Early adopter... addicted to alphas.Not KulvikTheminator
Joined: 08/28/2007
Juice: 731
Re: admin_menu/simple_menu

Yeah, they seem to have the same goal really; makes sense to merge them. Just to reiterate, simple_menu lets one choose which items are in the menu (and this is the key feature for me). Speaking of features: I would really like better integration with the page i.e. at the moment it's overlaid and I would prefer it if it was in it's own space above the regular page.

sun (not verified)
sun's picture
Admin Menu vs. SimpleMenu

Just to clarify: Admin Menu allows you to customize the displayed menu. However, it is based on the regular Drupal menu system and simply "slices" (cuts and pastes) all items below the "administer" menu item into the administration menu bar.

However, there is a fundamental difference between both modules: While Simple Menu can also be used to render a public or non-administrative user menu, Admin Menu is limited to the sole purpose of rendering the well known administration menu bar for administrative purposes (only). Admin Menu can not yet be used to render another dropdown menu. However, that may change soon with the evolution of the Dynamic Rendering module.

And, of course, Admin Menu's client-side code is much lighter than SimpleMenu's code, because it is based on CSS only.

qrios's picture
Offline
Cool profile pic award.Getting busy with the Ubercode.Internationalizationizer
Joined: 08/13/2007
Juice: 554
Re: Übercart vs. Admin Menu vs. SimpleMenu

Thanks! I admire your drive for perfection.