Using Menu-item aliases as Class

Your code modifications and patches you want to share with others.
Locked
baysaa
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Mon Mar 03, 2008 2:44 pm

Using Menu-item aliases as Class

Post by baysaa » Wed Jul 14, 2010 2:10 pm

Hello,

I have a simple question.

I wanted to print out the menu-item's alias on the <li> class attribute, instead of the item1, item2 etc classes. This is for a "List" type menu, not any of the legacy types.

For example:

Code: Select all

<ul>
    <li class="home"><a href="...">Home</a></li>
    <li class="about-us"><a href="...">About us</a></li>
</ul>
Any help will be greatly appreciated.

Thank you.

CDWM
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Thu Nov 13, 2008 3:23 am
Location: Colorado
Contact:

Re: Using Menu-item aliases as Class

Post by CDWM » Sun Aug 22, 2010 9:33 pm

I too would like to know the solution to this. I have seen it done on other joomla sites.

Anyone?
Website Design and Development: http://WebMakerInc.com
Facebook: http://www.facebook.com/webmakerinc


Locked

Return to “Core Hacks and Patches”