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

CS Nuglet: Extending master.Master

The more I work with Ben Tiedt's excellent Community Server Chameleon architecture for controlling page display the more I groove on it.  I can't believe the guy uses a MacBook...

Anyway, here's a nuglet describing how I extended the Community Server Master.master file on a client site over the weekend to control its output based on the application.

Let's say you have a footer that you only want to show on all site areas except the forums area.  Rather than creating a new common/.Master page for forums, extend it using Chameleon Intelligence.

 

<asp:ContentPlaceHolder ID="footerContent" runat="server">
    <CSControl:Placeholder runat="server" Tag="Div">
        <DisplayConditions Operator="NOT">
                <CSControl:ApplicationPropertyValueComparison
                        ApplicationType="forum" Operator="EqualTo" runat="server" />
        </DisplayConditions>
     <ContentTemplate>

 

This displays the content on all Community Server areas except Forums.  Neato.

Comments (0) | Post RSS RSS comment feed

Posted on 3/31/2008 7:08:14 PM by Dave Burke
Categories: Community Server
Tags: No tags for this post

Related posts

Comments are closed

This site was built with the Sueetie .NET Open Source Community Framework. Learn more about Sueetie at Sueetie.com.