Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentVariantDisplay

    Represents the variant info for a content item

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Models.ContentEditing
    Assembly: Umbraco.Core.dll
    Syntax
    [DataContract(Name = "contentVariant", Namespace = "")]
    public class ContentVariantDisplay : ITabbedContent<ContentPropertyDisplay>, IContentProperties<ContentPropertyDisplay>, INotificationModel

    Constructors

    View Source

    ContentVariantDisplay()

    Declaration
    public ContentVariantDisplay()

    Properties

    View Source

    AdditionalPreviewUrls

    Declaration
    [DataMember(Name = "additionalPreviewUrls")]
    public IEnumerable<NamedUrl> AdditionalPreviewUrls { get; set; }
    Property Value
    Type Description
    IEnumerable<NamedUrl>
    View Source

    AllowedActions

    Declaration
    [DataMember(Name = "allowedActions", IsRequired = true)]
    public IEnumerable<string> AllowedActions { get; set; }
    Property Value
    Type Description
    IEnumerable<System.String>
    View Source

    CreateDate

    Declaration
    [DataMember(Name = "createDate")]
    public DateTime CreateDate { get; set; }
    Property Value
    Type Description
    DateTime
    View Source

    DisplayName

    Declaration
    [DataMember(Name = "displayName")]
    public string DisplayName { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Language

    The language/culture assigned to this content variation

    Declaration
    [DataMember(Name = "language")]
    public Language Language { get; set; }
    Property Value
    Type Description
    Language
    Remarks

    If this is null it means this content variant is an invariant culture

    View Source

    Name

    Declaration
    [DataMember(Name = "name", IsRequired = true)]
    public string Name { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    Notifications

    This is used to add custom localized messages/strings to the response for the app to use for localized UI purposes.

    Declaration
    [DataMember(Name = "notifications")]
    public List<BackOfficeNotification> Notifications { get; }
    Property Value
    Type Description
    List<BackOfficeNotification>
    Remarks

    The notifications assigned to a variant are currently only used to show custom messages in the save/publish dialogs.

    View Source

    PublishDate

    Declaration
    [DataMember(Name = "publishDate")]
    public DateTime? PublishDate { get; set; }
    Property Value
    Type Description
    System.Nullable<DateTime>
    View Source

    Segment

    Declaration
    [DataMember(Name = "segment")]
    public string Segment { get; set; }
    Property Value
    Type Description
    System.String
    View Source

    State

    Declaration
    [DataMember(Name = "state")]
    public ContentSavedState State { get; set; }
    Property Value
    Type Description
    ContentSavedState
    View Source

    Tabs

    Defines the tabs containing display properties

    Declaration
    [DataMember(Name = "tabs")]
    public IEnumerable<Tab<ContentPropertyDisplay>> Tabs { get; set; }
    Property Value
    Type Description
    IEnumerable<Tab<ContentPropertyDisplay>>
    View Source

    UpdateDate

    Declaration
    [DataMember(Name = "updateDate")]
    public DateTime UpdateDate { get; set; }
    Property Value
    Type Description
    DateTime

    Explicit Interface Implementations

    View Source

    IContentProperties<ContentPropertyDisplay>.Properties

    Internal property used for tests to get all properties from all tabs

    Declaration
    [IgnoreDataMember]
    IEnumerable<ContentPropertyDisplay> IContentProperties<ContentPropertyDisplay>.Properties { get; }
    Returns
    Type Description
    IEnumerable<ContentPropertyDisplay>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentVariantDisplay()
    • Properties
      • AdditionalPreviewUrls
      • AllowedActions
      • CreateDate
      • DisplayName
      • Language
      • Name
      • Notifications
      • PublishDate
      • Segment
      • State
      • Tabs
      • UpdateDate
    • Explicit Interface Implementations
      • IContentProperties<ContentPropertyDisplay>.Properties
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX