Table of Contents

Class ChannelEdit

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

General tab of the channel edit page.

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

Constructors

ChannelEdit(IFormComponentMapper, IFormDataBinder, IEnumerable<IChannelSpecificFormItemsProcessor>, IChannelManager, IInfoProvider<ChannelInfo>, IChannelItemCounter)

Initializes a new instance of the ChannelEdit class.

public ChannelEdit(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IEnumerable<IChannelSpecificFormItemsProcessor> channelSpecificFormItemsProcessors, IChannelManager channelManager, IInfoProvider<ChannelInfo> channelInfoProvider, IChannelItemCounter channelItemCounter)

Parameters

formComponentMapper IFormComponentMapper
formDataBinder IFormDataBinder
channelSpecificFormItemsProcessors IEnumerable<IChannelSpecificFormItemsProcessor>
channelManager IChannelManager
channelInfoProvider IInfoProvider<ChannelInfo>
channelItemCounter IChannelItemCounter

Properties

ObjectId

ID of the channel.

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

Property Value

int

RefetchAll

Indicates whether to refetch all templates on edit.

protected override bool RefetchAll { get; }

Property Value

bool

Methods

ConfigurePage()

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

public override Task ConfigurePage()

Returns

Task

GetFormItems()

Prepares form items for editing object of the specified ObjectType.

protected override Task<ICollection<IFormItem>> GetFormItems()

Returns

Task<ICollection<IFormItem>>

Returns the collection of form items.

SetFormData(ChannelInfo, IFormFieldValueProvider)

Sets the infoObject.

protected override Task SetFormData(ChannelInfo infoObject, IFormFieldValueProvider fieldValueProvider)

Parameters

infoObject ChannelInfo

Info object to be set.

fieldValueProvider IFormFieldValueProvider

Provider of form field values.

Returns

Task