Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentItemDisplayBase<T>

    Inheritance
    System.Object
    EntityBasic
    ContentItemBasic
    ContentItemBasic<T>
    TabbedContentItem<T>
    Namespace: Umbraco.Cms.Core.Models.ContentEditing
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class ContentItemDisplayBase<T> : TabbedContentItem<T>, IContentProperties<T>, ITabbedContent<T>, INotificationModel, IErrorModel where T : ContentPropertyBasic
    Type Parameters
    Name Description
    T

    Constructors

    View Source

    ContentItemDisplayBase()

    Declaration
    protected ContentItemDisplayBase()

    Properties

    View Source

    ContentTypeName

    The name of the content type

    Declaration
    [DataMember(Name = "contentTypeName")]
    public string ContentTypeName { get; set; }
    Property Value
    Type Description
    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
    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

    IsContainer

    Indicates if the content is configured as a list view container

    Declaration
    [DataMember(Name = "isContainer")]
    public bool IsContainer { get; set; }
    Property Value
    Type Description
    System.Boolean
    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
      • ContentItemDisplayBase()
    • Properties
      • ContentTypeName
      • Errors
      • IsContainer
      • Notifications
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX