Hiding sub-sub menus
jack_ruby - July 22, 2008 - 01:43
| Project: | Nice Menus |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi there,
I really like nice menus, so thanks for creating it!
I do have a question, however.
Is there any way I can hide sub-sub menu items.
EG, if I have a top level menu item departments and under that administration and under that finance I don't want finance to fly out while I hover on administration, because I want those to show on the sidebar.
How can I make that happen? I've looked at the module and the CSS and nothing jumped out at me.
Thanks in advance_
Jack

#1
There is a patch in the queue that will make it so you can select how many levels of children you want for your nice menus. Does that address your question or is it a bit different than that?
#135771: Choose starting and ending menu depth
#2
Actually, it sounds like it will work, but, forgive my ignorance: how do I install it?
Thank you.
Jack
#3
Well you would need to actually apply the patch to the code. There is a section in the handbook for this at http://drupal.org/patch/apply. It is a lil bit of work to get set up to do patches but once you figure it out, it is a great way to help out. I need people to test the patch and make sure it works properly before I can put it into the official version of the module. So, if you could apply, test it and report back, that would be awesome and help me get it moving towards getting in.
#4
Try fiddling with:
ul.nice-menu-xxx li li li {
visibility: hidden;
}
Note: xxx = down in my case.
#5
Ok, I used WinSCP to apply the patch. And I got "10 out of 10 hunks failed".
??
I tried the dev snapshot and the 'normal' version of the module for drupal 6.
Sorry.
#6
Thanks, korneef,
That worked like a charm, although I did have to also amend
ul.nice-menu-down li li.menuparent:hover,ul.nice-menu-down li li.over,
/* Repeat for Garland header. */
#header-region ul.nice-menu-down li li.menuparent:hover,
#header-region ul.nice-menu-down li li.over {
}
to
ul.nice-menu-down li li.menuparent:hover,ul.nice-menu-down li li.over,
/* Repeat for Garland header. */
#header-region ul.nice-menu-down li li.menuparent:hover,
#header-region ul.nice-menu-down li li.over {
background-image:none;
background-color:#FFFFFF;
}
to match the formatting so that the sub menus don't take the formatting of the top level menu:hover.
#7
@jack_ruby, oh yeah the patch didn't work because other patches have gone in since that was made. We need to reroll that one now against the latest code. I'll go note that in the other issue.
#8
Automatically closed -- issue fixed for two weeks with no activity.