Closed (fixed)
Project:
Imagemenu
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2010 at 17:03 UTC
Updated:
25 May 2010 at 15:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
shawn_smiley commentedHere is a patch to add the "first" and "last" classes to the menu output.
Comment #2
godo commentedThanks. It's working fine. Is it possible to add this patch to core module?
It would be nice to have different "tags" classes for every item and not only for the "first" and "last" classes to the menu output. It is only a suggestion ;-)
Thanks again.
Comment #3
shawn_smiley commentedCan you elaborate on what you would like to see related to additional classes on the tags?
Comment #4
godo commentedOK,
So,
The "second"
<li>tag of a rendered menu should have "second" class assigned to it to assist...The "third"
<li>tag of a rendered menu should have "third" class assigned to it to assist......
Comment #5
shawn_smiley commentedWhat would be the use-case for adding the classes second, third, fourth, etc?
I haven't seen that done anywhere in Drupal core or any other contributed module.
I could see a use-case for adding even/odd classes though.
Comment #6
godo commentedIf I want to have a horizontal bar menu, I have to place with css properties every "image-button" of the menu, so:
first image menu second image menu third image ... <--- horizontal bar menu
..., I need to have different "tags" classes for every item, for example, assign differents "margin-left" and "margin-top" properties.
Thanks.
Comment #7
marcus_clements commentedI've added first and last classes, even and odd classes and a unique class per menu item in the form imagemenu-item-N where N is the id.
The code is comitted to 6.x-1.x-dev
The nightly snapshot should contain this fix. Please test and advise.
Comment #8
shawn_smiley commentedI just updated our site with the latest dev release and everything looks good.
Thanks.