If setup keywords and description for each products and topics, this works only for products
for topics work only general SEO setup(keywords,description)
But we need different keywords for each page
What we need setup for this ?
@{
if (!Model.IsPasswordProtected)
{
Html.AddTitleParts(!String.IsNullOrEmpty(Model.MetaTitle) ? Model.MetaTitle : Model.Title);
Html.AddMetaDescriptionParts(Model.MetaDescription);
Html.AddMetaKeywordParts(Model.MetaKeywords);
}
}
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Text;
using System.Web;
using System.Web.Caching;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using NopSolutions.NopCommerce.BusinessLogic;
using NopSolutions.NopCommerce.Common.Utils;
namespace NopSolutions.NopCommerce.Web
{
public partial class TopicPage : BaseNopPage
{
protected void Page_Load(object sender, EventArgs e)
{
}
public override PageSslProtectionEnum SslProtected
{
get
{
return PageSslProtectionEnum.No;
}
}
}
}
if (!String.IsNullOrEmpty(this.LocalizedTopic.MetaDescription))
SEOHelper.RenderMetaTag(this.Page, "description", this.LocalizedTopic.MetaDescription, true);
if (!String.IsNullOrEmpty(this.LocalizedTopic.MetaKeywords))
SEOHelper.RenderMetaTag(this.Page, "keywords", this.LocalizedTopic.MetaKeywords, true);