Hi, I was looking around the other day for a theme that would allow drop-down primary-links to show secondary-links. Obviously, no theme was proposing that and after a few script searches, I think I understood why. Doing that implies that you get all the primary-links *and* secondary-links structure at once, and nothing was in place to do that. So I hacked a bit and got the whole structure in one piece, but I'm actually wondering if there is *really* no other development already that did that. I'm not that good at DHTML so I haven't finished the job (actually displaying the menus as dropdown nicely). I had to change files in the theme (I started by re-using Garland) as well as the template engine, in Drupal 5.1. Any comments on this? Is that something people would want me to publicize? Can somebody with good DHTML skills provide me with some help finishing the job? I would have a few spare minutes at the end of the week to pass that on... Thanks, Yannick
See nice menus but no v5 yet (I use it on 4.7 and need it to convert to 5) -----Original Message----- From: development-bounces@drupal.org [mailto:development-bounces@drupal.org] On Behalf Of Yannick Warnier Sent: Tuesday, March 13, 2007 7:59 PM To: Drupal Dev List Subject: [development] Drop-down primary-links Hi, I was looking around the other day for a theme that would allow drop-down primary-links to show secondary-links. Obviously, no theme was proposing that and after a few script searches, I think I understood why. Doing that implies that you get all the primary-links *and* secondary-links structure at once, and nothing was in place to do that. So I hacked a bit and got the whole structure in one piece, but I'm actually wondering if there is *really* no other development already that did that. I'm not that good at DHTML so I haven't finished the job (actually displaying the menus as dropdown nicely). I had to change files in the theme (I started by re-using Garland) as well as the template engine, in Drupal 5.1. Any comments on this? Is that something people would want me to publicize? Can somebody with good DHTML skills provide me with some help finishing the job? I would have a few spare minutes at the end of the week to pass that on... Thanks, Yannick -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.10/720 - Release Date: 3/12/2007 7:19 PM
HEAD works for Drupal 5. We have it running on one site with no problems. Laura On Mar 13, 2007, at 6:08 PM, Walt Daniels wrote:
See nice menus but no v5 yet (I use it on 4.7 and need it to convert to 5)
-----Original Message----- From: development-bounces@drupal.org [mailto:development- bounces@drupal.org] On Behalf Of Yannick Warnier Sent: Tuesday, March 13, 2007 7:59 PM To: Drupal Dev List Subject: [development] Drop-down primary-links
Hi,
I was looking around the other day for a theme that would allow drop-down primary-links to show secondary-links. Obviously, no theme was proposing that and after a few script searches, I think I understood why. Doing that implies that you get all the primary-links *and* secondary-links structure at once, and nothing was in place to do that.
So I hacked a bit and got the whole structure in one piece, but I'm actually wondering if there is *really* no other development already that did that. I'm not that good at DHTML so I haven't finished the job (actually displaying the menus as dropdown nicely). I had to change files in the theme (I started by re-using Garland) as well as the template engine, in Drupal 5.1.
Any comments on this? Is that something people would want me to publicize? Can somebody with good DHTML skills provide me with some help finishing the job? I would have a few spare minutes at the end of the week to pass that on...
Thanks,
Yannick
-- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.10/720 - Release Date: 3/12/2007 7:19 PM
I've a site coming up in a month or so where I'll need to do this. My current plan is to not use the primary links feature directly but show the primary links MENU in the header block, the simply set each top level item in the menu to always-expand. That gets you all the data you need. Add CSS and jQuery to taste. We'll see if it really is that simple in a month or so. :-) On Tuesday 13 March 2007 6:59 pm, Yannick Warnier wrote:
Hi,
I was looking around the other day for a theme that would allow drop-down primary-links to show secondary-links. Obviously, no theme was proposing that and after a few script searches, I think I understood why. Doing that implies that you get all the primary-links *and* secondary-links structure at once, and nothing was in place to do that.
So I hacked a bit and got the whole structure in one piece, but I'm actually wondering if there is *really* no other development already that did that. I'm not that good at DHTML so I haven't finished the job (actually displaying the menus as dropdown nicely). I had to change files in the theme (I started by re-using Garland) as well as the template engine, in Drupal 5.1.
Any comments on this? Is that something people would want me to publicize? Can somebody with good DHTML skills provide me with some help finishing the job? I would have a few spare minutes at the end of the week to pass that on...
Thanks,
Yannick
-- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012 "If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson
I've used both nice menus (which as of 5 uses jquery) and have done it with CSS and jquery. Both ways can be done, it just depends on the effects you want the menu to do. - Matt On Mar 13, 2007, at 9:03 PM, Larry Garfield wrote:
I've a site coming up in a month or so where I'll need to do this. My current plan is to not use the primary links feature directly but show the primary links MENU in the header block, the simply set each top level item in the menu to always-expand. That gets you all the data you need. Add CSS and jQuery to taste.
We'll see if it really is that simple in a month or so. :-)
On Tuesday 13 March 2007 6:59 pm, Yannick Warnier wrote:
Hi,
I was looking around the other day for a theme that would allow drop-down primary-links to show secondary-links. Obviously, no theme was proposing that and after a few script searches, I think I understood why. Doing that implies that you get all the primary-links *and* secondary-links structure at once, and nothing was in place to do that.
So I hacked a bit and got the whole structure in one piece, but I'm actually wondering if there is *really* no other development already that did that. I'm not that good at DHTML so I haven't finished the job (actually displaying the menus as dropdown nicely). I had to change files in the theme (I started by re-using Garland) as well as the template engine, in Drupal 5.1.
Any comments on this? Is that something people would want me to publicize? Can somebody with good DHTML skills provide me with some help finishing the job? I would have a few spare minutes at the end of the week to pass that on...
Thanks,
Yannick
-- Larry Garfield AIM: LOLG42 larry@garfieldtech.com ICQ: 6817012
"If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it." -- Thomas Jefferson
In addition to what Larry said: For the drop down menus, Nick summarizes pretty well: http://www.nicklewis.org/10_minutes_to_a_better_drupal_user_interface Also, if I've read the requirements correctly, you might want to look at the activemenu in http://drupal.org/project/jstools .s Yannick Warnier wrote:
Hi,
I was looking around the other day for a theme that would allow drop-down primary-links to show secondary-links. Obviously, no theme was proposing that and after a few script searches, I think I understood why. Doing that implies that you get all the primary-links *and* secondary-links structure at once, and nothing was in place to do that.
So I hacked a bit and got the whole structure in one piece, but I'm actually wondering if there is *really* no other development already that did that. I'm not that good at DHTML so I haven't finished the job (actually displaying the menus as dropdown nicely). I had to change files in the theme (I started by re-using Garland) as well as the template engine, in Drupal 5.1.
Any comments on this? Is that something people would want me to publicize? Can somebody with good DHTML skills provide me with some help finishing the job? I would have a few spare minutes at the end of the week to pass that on...
Thanks,
Yannick
Spurred by this discussion (I had one of those 'ah, this is how we could do it' moments), I've posted a patch to the activemenu module that will add multi-level drop-downs to primary links. It needs a fair bit of css work (briefly explained in the issue). If anyone wants to take on the css work, or other refinement, please post improvements to the patch: http://drupal.org/node/127722 (I will be travelling for the next couple of weeks so will review any improvements after I'm back.)
Thanks for all your comments and the mention of nice menus' HEAD working with Drupal 5. That's probably going to save me a lot of time. Good evening to all, Yannick Le mardi 13 mars 2007 à 23:59 +0000, Yannick Warnier a écrit :
Hi,
I was looking around the other day for a theme that would allow drop-down primary-links to show secondary-links. Obviously, no theme was proposing that and after a few script searches, I think I understood why. Doing that implies that you get all the primary-links *and* secondary-links structure at once, and nothing was in place to do that.
So I hacked a bit and got the whole structure in one piece, but I'm actually wondering if there is *really* no other development already that did that. I'm not that good at DHTML so I haven't finished the job (actually displaying the menus as dropdown nicely). I had to change files in the theme (I started by re-using Garland) as well as the template engine, in Drupal 5.1.
Any comments on this? Is that something people would want me to publicize? Can somebody with good DHTML skills provide me with some help finishing the job? I would have a few spare minutes at the end of the week to pass that on...
Thanks,
Yannick
On 14 Mar 2007, at 00:59, Yannick Warnier wrote:
I was looking around the other day for a theme that would allow drop-down primary-links to show secondary-links. Obviously, no theme was proposing that and after a few script searches, I think I understood why. Doing that implies that you get all the primary-links *and* secondary-links structure at once, and nothing was in place to do that.
The fact that Drupal 5 supports dynamic menu items (menu items that are conditionally generated) makes it difficult/dangerous to do dynamic HTML menus. If I'm not mistaken, that is already taken care of by the new menu system in Drupal 6. That should be good news for the people that want "responsive menus". Is DHTML menu items something core could support better? We're working on the menu system now, so feedback and/or patches from the various menu module maintainers, and theme designers, would be welcome. I'd love to find out, how we can make it easier to make and support "complex menus". -- Dries Buytaert :: http://www.buytaert.net/
Le jeudi 15 mars 2007 à 12:55 +0100, Dries Buytaert a écrit :
On 14 Mar 2007, at 00:59, Yannick Warnier wrote:
I was looking around the other day for a theme that would allow drop-down primary-links to show secondary-links. Obviously, no theme was proposing that and after a few script searches, I think I understood why. Doing that implies that you get all the primary-links *and* secondary-links structure at once, and nothing was in place to do that.
The fact that Drupal 5 supports dynamic menu items (menu items that are conditionally generated) makes it difficult/dangerous to do dynamic HTML menus. If I'm not mistaken, that is already taken care of by the new menu system in Drupal 6. That should be good news for the people that want "responsive menus".
Is DHTML menu items something core could support better? We're working on the menu system now, so feedback and/or patches from the various menu module maintainers, and theme designers, would be welcome. I'd love to find out, how we can make it easier to make and support "complex menus".
Hi Dries, Well, the fact that setting a menu to always be expanded makes all subitems available is something I didn't know, which could be better documented in the code. Apart from that, once you have the complete menu structure available as a PHP variable, you need: - a set of CSS rules that deal with a "dynamic-menus" class or the like - a set of JavaScript event handlers that deal with the movement of the cursor hovering the menus Apart from that, there's not much to add. Maybe JQuery already has the set of functions needed to handle the menu hovering bit. Personnaly, not knowing about the "expanded" option of each primary link very well, I wrote another function (similar to menu_primary_links(), if I remember the name well) to actually return the complete hierarchical structure of all primary and secondary links into one variable that I could then use to build the structure. I called it menu_all_primary_links(). Well, I'm just starting with Drupal so I don't really know much and you can consider this as a lonely brainstorming session (maybe some ideas but not too tangible). Yannick PS: Thanks for the show at FOSDEM Dries, I already knew a bit about Drupal but it helped me get a bit further, and I really appreciated the information about the Belgian community (which I hadn't managed to find clearly on the website).
On 3/15/07, Dries Buytaert <dries.buytaert@gmail.com> wrote:
On 14 Mar 2007, at 00:59, Yannick Warnier wrote:
I was looking around the other day for a theme that would allow drop-down primary-links to show secondary-links. Obviously, no theme was proposing that and after a few script searches, I think I understood why. Doing that implies that you get all the primary-links *and* secondary-links structure at once, and nothing was in place to do that.
The fact that Drupal 5 supports dynamic menu items (menu items that are conditionally generated) makes it difficult/dangerous to do dynamic HTML menus. If I'm not mistaken, that is already taken care of by the new menu system in Drupal 6. That should be good news for the people that want "responsive menus".
Is DHTML menu items something core could support better? We're working on the menu system now, so feedback and/or patches from the various menu module maintainers, and theme designers, would be welcome. I'd love to find out, how we can make it easier to make and support "complex menus".
Or even.....supporting DHTML menus in core for the "Administer" tree? (maybe just a +1 / -1 call...) I've decided we're going to bundle SimpleMenu (http://drupal.org/project/simplemenu) with our "Basic" profile ( see https://svn.bryght.com/dev/browser/bryghtbase/DRUPAL-5/trunk/profiles/basic ) Cheers, -- Boris Mann Vancouver 778-896-2747 San Francisco 415-367-3595 Skype borismann http://www.bryght.com
participants (9)
-
Boris Mann -
Dries Buytaert -
Larry Garfield -
Laura Scott -
Matthew Farina -
Nedjo Rogers -
sime -
Walt Daniels -
Yannick Warnier