We have recently upgraded to Litium 7 from version 6.x. And we havn’t created definition classes for the existing page templates. Now we have a requirement to add some fields to one of the page templates(through code). I was able to create field definition for the fields, but i don’t know how to add them to the template through code.
All the samples i saw expects me to create definition classes for the
existing page templates.
Is there a way to add fields to a page template through code without creating page template classes?
var sampleTemplate = IoC.Resolve<FieldTemplateService>().Get<PageFieldTemplate>(TemplateNameConstants.SampleTemplateName);
Litium version: 7.2.3