Adding classes to housemenu list items
Last Post 11/30/2009 9:08 PM by Joseph Craig. 1 Replies.
Author Messages
langersp
Nuke Newbie
Nuke Newbie
Posts:1


--
11/30/2009 9:44 AM  
Hi,

Is there a way to add specific classes to the list items or anchors in the housemenu?  i.e.
 
instead of something like this:

<ul id="nav">
<li id="navCurrentItem"><a id="navCurrentLink" href="http:" title="Welcome " tabindex="1">Welcome a>li>
<li id="navItem130"><a id="navLink130" href="http://" title="Venue" tabindex="1">Venuea>li>
<li id="navItem131"><a id="navLink131" href="http://" title="City" tabindex="1">Citya>li>
<li id="navItem132"><a id="navLink132" href="http://" title="Hotel" tabindex="1">Hotela>li>
ul>

have something like this:

<ul id="nav">
<li id="navCurrentItem" class="welcome"><a id="navCurrentLink" href="http:" title="Welcome " tabindex="1">Welcome a>li>
<li id="navItem130" class="venue"><a id="navLink130" href="http://" title="Venue" tabindex="1">Venuea>li>
<li id="navItem131" class="city"><a id="navLink131" href="http://" title="City" tabindex="1">Citya>li>
<li id="navItem132" class="hotel"><a id="navLink132" href="http://" title="Hotel" tabindex="1">Hotela>li>
ul>

this would allow me to style the seperate list items differently without haveing to create a new skin each time more list items were added (i.e. using the ID's)

Thanks

Joseph Craig
DNN MVP
Posts:11667


--
11/30/2009 9:08 PM  
The DNN NAV Menu, which is shipped with current versions of DotNetNuke has all sorts of classes, and it is quite customizable via CSS.  I think that it is a much better choice these days than the House menu.  There are some other nice (and free) menus floating around:

You might want to look at them.

Joe Craig, Patapsco Research Group
Complete DNN Support


---