private ISiteMapNode GetSiteMapNodeFromProductInfo(ISiteMap siteMap, SiteMapProductInfo productInfo) { var key = productInfo.CategoryXProductId.ToString(); var node = siteMapNodeFactory.Create(siteMap, key, ""); // Assign values node.Title = productInfo.Name; node.Url = productInfo.UrlPath; // Setup visibility node.Attributes.Add("isVisibleOnMainMenu", "false"); node.VisibilityProvider = typeof(VisibilityProvider).ShortAssemblyQualifiedName(); node.CanonicalUrl = productInfo.CanonicalUrlPath; AcquireMetaRobotsValuesFrom(productInfo.MetaRobots, node.MetaRobotsValues); return(node); }
private ISiteMapNode GetSiteMapNodeFromProductInfo(ISiteMap siteMap, SiteMapProductInfo productInfo) { var key = productInfo.CategoryXProductId.ToString(); var node = siteMapNodeFactory.Create(siteMap, key, ""); // Assign values node.Title = productInfo.Name; node.Url = productInfo.UrlPath; // Setup visibility node.Attributes.Add("isVisibleOnMainMenu", "false"); node.VisibilityProvider = typeof(VisibilityProvider).ShortAssemblyQualifiedName(); node.CanonicalUrl = productInfo.CanonicalUrlPath; AcquireMetaRobotsValuesFrom(productInfo.MetaRobots, node.MetaRobotsValues); return node; }