Breadcrumbs - don't show current node
-
11-10-2019 - |
سؤال
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!
المحلول
You can define an empty CurrentNodeTemplate:
<asp:SiteMapPath ID="yourSiteMapPath" runat="server">
<CurrentNodeTemplate>
</CurrentNodeTemplate>
</asp:SiteMapPath>
لا تنتمي إلى StackOverflow