Remove 'Categories' from breadcrumbtrail

Posted By bpaluch Mon 23 Jun 2014
Add to Favorites0
Author Message
bpaluch
 Posted Mon 23 Jun 2014
Supreme Being

Supreme Being - (47,098 reputation)Supreme Being - (47,098 reputation)Supreme Being - (47,098 reputation)Supreme Being - (47,098 reputation)Supreme Being - (47,098 reputation)Supreme Being - (47,098 reputation)Supreme Being - (47,098 reputation)Supreme Being - (47,098 reputation)Supreme Being - (47,098 reputation)

Group: Forum Members
Last Active: Thu 23 Jul 2020
Posts: 70, Visits: 175
Hi, I did some poking around in the SiteMapPRovider class, but I wasn't able to get the word/link "Categories' off the bread crumb trail. I just want 'home' and then the name of the category this item is in. Thank you.
bpaluch Marked As Answer
 Posted Tue 24 Jun 2014
Supreme Being

Supreme Being - (47,098 reputation)Supreme Being - (47,098 reputation)Supreme Being - (47,098 reputation)Supreme Being - (47,098 reputation)Supreme Being - (47,098 reputation)Supreme Being - (47,098 reputation)Supreme Being - (47,098 reputation)Supreme Being - (47,098 reputation)Supreme Being - (47,098 reputation)

Group: Forum Members
Last Active: Thu 23 Jul 2020
Posts: 70, Visits: 175
ok, this worked for me, in SiteMapPRovider.vb, line 113

Dim strCategoryLabel As String = HttpContext.GetGlobalResourceObject("Kartris", "ContentText_Categories")




_rootNode = New SiteMapNode(Me, "0-" & numLANGID, "~/Default.aspx", HttpContext.GetGlobalResourceObject("Kartris", "ContentText_Home"), HttpContext.GetGlobalResourceObject("Kartris", "ContentText_Home"))




' _rootNode = New SiteMapNode(Me, "0-" & numLANGID, "~/Category.aspx?L=" & numLANGID, strCategoryLabel, strCategoryLabel)




' Dim HomeNode As SiteMapNode = New SiteMapNode(SiteMap.Providers.Item("BreadCrumbSiteMap"), "Home", "~/Default.aspx", HttpContext.GetGlobalResourceObject("Kartris", "ContentText_Home"))




' AddNode(_rootNode, HomeNode)








_htRootNodes.Add(numLANGID, _rootNode)





' Build the child nodes

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top