asp.netsitemappath

Breadcrumbs - don't show current node


With the SiteMapPath control (navigation breadcrumbs), is there any way to NOT show the current node you are on? I only want to show the parents. There is a property to RenderCurrentNodeAsLink, but not what I'm looking for. Thanks!


Solution

  • You can define an empty CurrentNodeTemplate:

    <asp:SiteMapPath ID="yourSiteMapPath" runat="server">
        <CurrentNodeTemplate>
        </CurrentNodeTemplate>
    </asp:SiteMapPath>