Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentTypeCompositionDisplay

    Inheritance
    System.Object
    EntityBasic
    ContentTypeBasic
    Namespace: Umbraco.Cms.Core.Models.ContentEditing
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class ContentTypeCompositionDisplay : ContentTypeBasic, INotificationModel

    Constructors

    View Source

    ContentTypeCompositionDisplay()

    Declaration
    protected ContentTypeCompositionDisplay()

    Properties

    View Source

    AllowAsRoot

    Declaration
    [DataMember(Name = "allowAsRoot")]
    public bool AllowAsRoot { get; set; }
    Property Value
    Type Description
    System.Boolean
    View Source

    AllowedContentTypes

    Declaration
    [DataMember(Name = "allowedContentTypes")]
    public IEnumerable<int>? AllowedContentTypes { get; set; }
    Property Value
    Type Description
    System.Nullable<IEnumerable<System.Int32>>
    View Source

    CompositeContentTypes

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

    Errors

    This is used for validation of a content item.

    Declaration
    [DataMember(Name = "ModelState")]
    public IDictionary<string, object>? Errors { get; set; }
    Property Value
    Type Description
    System.Nullable<IDictionary<System.String, System.Object>>
    Remarks

    A content item can be invalid but still be saved. This occurs when there's property validation errors, we will still save the item but it cannot be published. So we need a way of returning validation errors as well as the updated model. NOTE: The ProperCase is important because when we return ModeState normally it will always be proper case.

    View Source

    ListViewEditorName

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

    LockedCompositeContentTypes

    Declaration
    [DataMember(Name = "lockedCompositeContentTypes")]
    public IEnumerable<string>? LockedCompositeContentTypes { get; set; }
    Property Value
    Type Description
    System.Nullable<IEnumerable<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>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentTypeCompositionDisplay()
    • Properties
      • AllowAsRoot
      • AllowedContentTypes
      • CompositeContentTypes
      • Errors
      • ListViewEditorName
      • LockedCompositeContentTypes
      • Notifications
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX