예제 #1
0
        private SiteMapNode CreateSiteMapNodeProduct(string productID, string name, string shortDescription, string urlName, string categoryID)
        {
            string url = String.Empty;

            if (UrlManager.IsFacebook())
            {
                url = UrlManager.GetFacebookProductUrl(productID, urlName);
            }
            else
            {
                url = UrlManager.GetProductUrl(productID, urlName);
            }

            SiteMapNode node = new SiteMapNode(this,
                                               CreateUniqueProductID(productID), url, name, shortDescription, null, null, null, null);

            return(node);
        }