Dave Burke : Freelance .NET Web Developer specializing in Online Communities

Highlighting Community Server Submenu Tabs

I'm using a Community Server Submenu on one of my sites as you see below.  Adding the submenu tabs wasn't an issue.  The submenu is used in the context of a themed blog area so it was added to the theme's theme.master.  The trick was how to highlight the appropriate tab based on the location without rewriting the submenu HTML.  Enter Chameleon's ConditionalContent Control.

 

Each tab was placed in a Conditional Content control, displaying appropriate CSS on a True or False condition using a QueryStringPropertyValueComparison test.  (1) denotes the true area, (2) the false.  You'll see different CSS classes, though the menu item's link is unchanged.

 


The QueryStringProperty of the query string was "SubApp."  Huh?  I added this to the vanity url for the applicable urls.


Comments (0) | Post RSS RSS comment feed

Posted on 9/8/2007 7:10:55 AM by Dave Burke
Categories: Community Server
Tags:

Related posts


Powered by BlogEngine.NET 2.0.0.36
Theme by Dave Burke