This patch adds 'first', 'odd', 'even' classes to ever li tag. That helps a lot when styling the menus.
E.g. zebra stripes or borders between elements.

I know I can do that by overriding your theme function, but I think this would be quite useful in many cases so I created a patch for nice_menus.module.
Would be nice to get that into the module for good.

nice_menus_listingposition.patch1.75 KBglobetrotter
Members fund testing for the Drupal project. Drupal Association Learn more


add1sun’s picture

Status: Needs review » Closed (duplicate)

There is already an existing patch for first and last classes #301247: add classes 'first', 'last', 'even', 'odd'. Let's take this discussion to that thread please.