private void OverRideSEOInfo(string categorykey, int storeID, int portalID, string userName, string cultureName) { CategorySEOInfo dtCatSEO = GetSEOSettingsByCategoryName(categorykey, storeID, portalID, userName, cultureName); if (dtCatSEO != null) { string PageTitle = dtCatSEO.MetaTitle.ToString(); string PageKeyWords = dtCatSEO.MetaKeywords.ToString(); string PageDescription = dtCatSEO.MetaDescription.ToString(); if (!string.IsNullOrEmpty(PageTitle)) { SEOHelper.RenderTitle(this.Page, PageTitle, false, true, this.GetPortalID); } if (!string.IsNullOrEmpty(PageKeyWords)) { SEOHelper.RenderMetaTag(this.Page, "KEYWORDS", PageKeyWords, true); } if (!string.IsNullOrEmpty(PageDescription)) { SEOHelper.RenderMetaTag(this.Page, "DESCRIPTION", PageDescription, true); } } }
private void OverRideSEOInfo(string categorykey, AspxCommonInfo aspxCommonObj) { CategorySEOInfo dtCatSEO = AspxFilterController.GetSEOSettingsByCategoryName(categorykey, aspxCommonObj); if (dtCatSEO != null) { string Name = dtCatSEO.Name.ToString(); string PageTitle = dtCatSEO.MetaTitle.ToString(); string PageKeyWords = dtCatSEO.MetaKeywords.ToString(); string PageDescription = dtCatSEO.MetaDescription.ToString(); if (!string.IsNullOrEmpty(PageTitle)) { SEOHelper.RenderTitle(this.Page, PageTitle, false, true, PortalID); } else { SEOHelper.RenderTitle(this.Page, Name, false, true, PortalID); } if (!string.IsNullOrEmpty(PageKeyWords)) { SEOHelper.RenderMetaTag(this.Page, "KEYWORDS", PageKeyWords, true); } if (!string.IsNullOrEmpty(PageDescription)) { SEOHelper.RenderMetaTag(this.Page, "DESCRIPTION", PageDescription, true); } } }