Table of Contents

Class ContentItemCreateLanguageVariantModel

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

Content item model used when creating language variant.

public sealed class ContentItemCreateLanguageVariantModel
Inheritance
object
ContentItemCreateLanguageVariantModel
Extension Methods

Properties

CopyFromAnotherLanguage

Allows to copy text from another language or to create empty text.

public string CopyFromAnotherLanguage { get; set; }

Property Value

string

CopyFromAnotherLanguageSelected

Indicates if copy from existing language variant is selected.

public bool CopyFromAnotherLanguageSelected { get; }

Property Value

bool

DisplayName

Name of the content item.

[MaxLengthValidationRule(100)]
[RequiredValidationRule]
public string DisplayName { get; set; }

Property Value

string

LanguageToCopyFrom

Selector for language variant from which the content will be copied.

[ObjectSelectorComponent("cms.contentlanguage", Placeholder = "{$contenthub.contentitem.createlanguagevariant.language.placeholder$}", WhereConditionProviderType = typeof(ContentItemLanguageVariantsObjectSelectorWhereConditionProvider), Order = 3)]
[VisibleIfEqualTo("CopyFromAnotherLanguage", "True")]
[RequiredValidationRule(FieldName = "{$contenthub.contentitem.createlanguagevariant.language.fieldname$}")]
public IEnumerable<ObjectRelatedItem> LanguageToCopyFrom { get; set; }

Property Value

IEnumerable<ObjectRelatedItem>