Sorry I didn't even notice that, I just assumed it was something else. I had forgotten I have even put that in there, I will tell you what I was trying to do. I was trying to add a SiteMapPath control to a template so that I could just use the Sitemap datasource of course it then renders the [Site Map] Root Node that is part of Sitefinity, so I thought I was being clever overriding it, to hide the root node... It seemed to work with the previous beta, I think, anyway. I thought I would send you this code out of interest. I should probably build my own SiteMapPath control, I just thought I would save time by using the built in one.
In case you are interested here is the relevant code, I was using in the global asax.
void Application_Start(object sender, EventArgs e)
// Code that runs on application startup
SiteMap.SiteMapResolve += new SiteMapResolveEventHandler(HideRootNode);
static SiteMapNode HideRootNode(Object sender, SiteMapResolveEventArgs e)
// Hide the root node from SiteMapPath controls by cloning the site
// map from the current node up to the node below the root node and
// setting that node's ParentNode property to null.
SiteMapNode node = SiteMap.CurrentNode.Clone();
SiteMapNode current = node;
SiteMapNode root = SiteMap.RootNode;
if (current != root) // Just in case the current node *is* the root node!
while (node.ParentNode != root)
node.ParentNode = node.ParentNode.Clone();
node = node.ParentNode;
node.ParentNode.Title = "Home";
Thanks for point out something I really should have noticed myself...