I'm trying to extend the Umbraco Forms email-sender in as elegant a way as possible.
I've created a custom workflow with additional fields (title, body e.c.t), however, I wanted to extend the 'FormsHtmlModel' to include these so that if the user mixes up the templates the whole thing won't implode in on itself as my end users are not particularly tech-savvy.
I tried creating a new model:
public class FormsEmailModel : FormsHtmlModel
{
public FormsEmailModel(FormFieldHtmlModel[] fields) : base(fields)
{
}
public string Title { get; set; }
public string Body { get; set; }
}
and changing the base the model on all the templates, thinking that in theory, it would make them cross-compatible.
Extending Umbraco Forms Email Sender
Hi,
I'm trying to extend the Umbraco Forms email-sender in as elegant a way as possible.
I've created a custom workflow with additional fields (title, body e.c.t), however, I wanted to extend the 'FormsHtmlModel' to include these so that if the user mixes up the templates the whole thing won't implode in on itself as my end users are not particularly tech-savvy.
I tried creating a new model:
and changing the base the model on all the templates, thinking that in theory, it would make them cross-compatible.
Any advice would be appreciated,
Thanks
Stu
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.