Table of Contents

Class EmailTemplateCode

Namespace
Kentico.Xperience.Admin.DigitalMarketing.UIPages
Assembly
Kentico.Xperience.Admin.DigitalMarketing.dll

Source code tab of the email template's edit page.

public sealed class EmailTemplateCode : InfoEditPage<EmailTemplateInfo>, IPage
Inheritance
object
EmailTemplateCode
Implements
Inherited Members
Extension Methods

Constructors

EmailTemplateCode(IFormComponentMapper, IFormDataBinder, IAuthenticatedUserAccessor)

Initializes a new instance of the EmailTemplateEdit class.

public EmailTemplateCode(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IAuthenticatedUserAccessor authenticatedUserAccessor)

Parameters

formComponentMapper IFormComponentMapper
formDataBinder IFormDataBinder
authenticatedUserAccessor IAuthenticatedUserAccessor

Properties

ObjectId

ID of the email template.

[PageParameter(typeof(IntPageModelBinder))]
public override int ObjectId { get; set; }

Property Value

int

Methods

ConfigurePage()

Set up page's configuration. Configures the submit action.

public override Task ConfigurePage()

Returns

Task

GetFormItemsClientProperties()

Returns properties describing client form components for editing object.

protected override Task<IEnumerable<IFormItemClientProperties>> GetFormItemsClientProperties()

Returns

Task<IEnumerable<IFormItemClientProperties>>

Exceptions

InvalidOperationException

Thrown when object instance is null or data class info for ObjectType was not found.

SetFormData(EmailTemplateInfo, IFormFieldValueProvider)

Sets the infoObject.

protected override Task SetFormData(EmailTemplateInfo infoObject, IFormFieldValueProvider fieldValueProvider)

Parameters

infoObject EmailTemplateInfo

Info object to be set.

fieldValueProvider IFormFieldValueProvider

Provider of form field values.

Returns

Task