How can I hide the SiteMapPath root node on home page?
Posted
by Jamie Ide
on Stack Overflow
See other posts from Stack Overflow
or by Jamie Ide
Published on 2009-06-26T18:47:03Z
Indexed on
2010/04/05
20:13 UTC
Read the original article
Hit count: 331
How can I hide the root node in a SiteMapPath control when the user is on the root node page? For example, my breadcrumb trail on a child page is:
Home > Products > Hammers > Ball Peen
which is fine. But when the user is on the Home page, the SiteMapPath control displays
Home
which is useless clutter. I want to suppress displaying Home (the root node) when the user is on the home page. I have the SiteMapPath control in a master page. Also, I'm handling SiteMapResolve to set the querystrings in the nodes.
© Stack Overflow or respective owner