Class ContentItemDisplayBase<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 SourceContentItemDisplayBase()
Declaration
protected ContentItemDisplayBase()
Properties
View SourceContentTypeName
The name of the content type
Declaration
[DataMember(Name = "contentTypeName")]
public string ContentTypeName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
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.
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 |
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> |