1

Closed

no seo fields

description

Hi,
In my n2.Templates project I'm trying to create a class that derives from ContentItem, and Icommentable. How can I get the seo property's - 'alternative title', 'keywords' and 'Description' that are available in the Details tab if I'd derived the class from ContentPageBase?
Closed Jun 22, 2012 at 9:59 AM by libardo
Currently in mvc template this is done on pages inheriting from PageBase:https://github.com/n2cms/n2cms/blob/master/src/Mvc/MvcTemplates/Services/SEODefinitionAppender.csYou can inherit from this base type. If you want seo on other pages I recommend adding the fields to the model like it's done on webform templates:https://github.com/n2cms/n2cms/blob/master/src/WebForms/WebFormsTemplates/Templates/Items/AbstractContentPage.cs

comments