Hello!

I'm all new to Drupal and quite like it so far. It's quite easy to get some result, but i find the Themeing learning curve to be quite steep.
I'm trying to transform this layout into a template. http://pixeline.be/test/heaj/template/homepage.html

At this point, I'm stuck trying to reproduce the colorfade effect on the navigation menu at the bottom of the page ("découvrir l'infographie", etc ...).

Can you guys advise me on how i should do this: i would need to control exactly the way the menus html is produced, because i need custom attributes. Is that possible?

Thanks a lot !

Alexandre

Comments

Jeff Burnz’s picture

I don't think I'd bother trying to hack the primary menus into doing this - be a lot easier to just build 3 seperate menus and use the Menu Attributes module to supply the necessary attributes, or you could just add them with jQuery. If you are bent on using the Primary menu I would not render it directly, but try splitting it up with the http://drupal.org/project/menu_block module.

pixeline’s picture

thanks for your reply. I looked at the Menu Attributes module. It seems like it could do the job, but i realize that I need to output this main menu in various formats: one for the top page menu, and one for the bottom "colorfading" thingy previously mentioned. So it's the same list of links, but not the same html code. Should i therefore create as many menus as i need, even though they have the same collection of links?

knalstaaf’s picture

If I get this right, you want to get into the html and css of the primary links?

pixeline’s picture

Thanks guys for hanging around me. In short:

i want to display one menu in 2 different ways on the same page, with very strong control of the way the html is composed : html tags and attributes, including custom attributes (non-html valid).

- menu display 1 is a dropdown menu
- menu display 2 is an exploded menu

The easy solution would be to hardcode it in the theme, because these links won't change very often, but that's just missing the point of a CMS.

I explored the previous suggestions, but after almost 2 days on this, i'm no further. Well, now i can express my question much more clearly, that's already a start ....

Thanks again,

Alex