Posted on Feb 23, 2009
(permalink)
I'm trying to create a very simple left-side menu and having more problems than I would've thought. I have everything controlled by CSS so all I need the control to output is a bulleted list like this:
<ul>
<li><a href="">Who We Are</a></li>
<li><a href="">Our Work</a></li>
<li><a class="selected" href="">Frequently Asked Questions</a></li>
</ul>
I'm using a Site Menu control and I've turned off the skin and added my "selected" class which gets me 90% there. No matter what page I'm on though, the first link ALWAYS has the selected class. I can't figure out how to turn it off.
I have my pages like this:
About Us (page group)
- Who We are
- Our Work
- Frequently Asked Questions
Does the first link always being selectedhave something to do with it being the first page in a page group?
I also have:
StartingNodeOffset: 0
ShowStartingNode: False
StartFromCurrentNode: False
StartingNodeUrl: ~/about-us.aspx (which is the name of the page group)
How can I make sure that the is only applied to the actual current page?
Any help will be appreciated.