ComponentOne SiteMap for ASP.NET Web Forms
C1SiteMap Features / Node Templates
In This Topic
    Node Templates
    In This Topic

    You can add images and customize the styles of any node level, by adding node templates.

    In Source View

    Following code shows how to create node templates within the <cc1:C1SiteMapLevelSetting></cc1:C1SiteMapLevelSetting tags.

    Copy Code
    <LevelSettings>
            <cc1:C1SiteMapLevelSetting Level="1">
                <NodeTemplate>
                    <asp:Image ID="Image1" runat="server" Width="28px" Height="26px" ImageUrl="~/C1SiteMap/Images/Wijmo.png" />
                    <a href="#" class="template-text">
                        <%# Eval("description") %>
                    </a>
                </NodeTemplate>
            </cc1:C1SiteMapLevelSetting>
            <cc1:C1SiteMapLevelSetting Level="2" Layout="Flow"></cc1:C1SiteMapLevelSetting>
        </LevelSettings>