View Source
Class ContentItemDisplay<TVariant>
A model representing a content item to be displayed in the back office
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
[DataContract(Name = "content", Namespace = "")]
public class ContentItemDisplay<TVariant> : INotificationModel, IErrorModel where TVariant : ContentVariantDisplay
Type Parameters
Name |
Description |
TVariant |
|
Constructors
View Source
ContentItemDisplay()
Declaration
public ContentItemDisplay()
Properties
View Source
AdditionalData
A collection of extra data that is available for this specific entity/entity type
Declaration
[DataMember(Name = "metaData")]
public IDictionary<string, object> AdditionalData { get; }
Property Value
Type |
Description |
IDictionary<System.String, System.Object> |
|
View Source
AllowedActions
The allowed 'actions' based on the user's permissions - Create, Update, Publish, Send to publish
Declaration
[DataMember(Name = "allowedActions")]
public IEnumerable<string>? AllowedActions { get; set; }
Property Value
Type |
Description |
System.Nullable<IEnumerable<System.String>> |
|
View Source
AllowedTemplates
Declaration
[DataMember(Name = "allowedTemplates")]
public IDictionary<string, string>? AllowedTemplates { get; set; }
Property Value
Type |
Description |
System.Nullable<IDictionary<System.String, System.String>> |
|
View Source
AllowPreview
Determines whether previewing is allowed for this node
Declaration
[DataMember(Name = "allowPreview")]
public bool AllowPreview { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
ContentApps
Declaration
[DataMember(Name = "apps")]
public IEnumerable<ContentApp> ContentApps { get; set; }
Property Value
View Source
ContentDto
The DTO object used to gather all required content data including data type information etc... for use with
validation - used during inbound model binding
Declaration
[IgnoreDataMember]
public ContentPropertyCollectionDto ContentDto { get; set; }
Property Value
View Source
ContentTypeAlias
Declaration
[DataMember(Name = "contentTypeAlias", IsRequired = true)]
[Required(AllowEmptyStrings = false)]
public string ContentTypeAlias { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
ContentTypeId
Declaration
[DataMember(Name = "contentTypeId")]
public int? ContentTypeId { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
View Source
ContentTypeKey
Declaration
[DataMember(Name = "contentTypeKey")]
public Guid ContentTypeKey { get; set; }
Property Value
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
DocumentType
Declaration
[DataMember(Name = "documentType")]
public ContentTypeBasic DocumentType { get; set; }
Property Value
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> |
|
View Source
Icon
Declaration
[DataMember(Name = "icon")]
public string Icon { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
Id
Declaration
[DataMember(Name = "id", IsRequired = true)]
[Required]
public int Id { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
IsBlueprint
Declaration
[DataMember(Name = "isBlueprint")]
public bool IsBlueprint { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
IsChildOfListView
Property indicating if this item is part of a list view parent
Declaration
[DataMember(Name = "isChildOfListView")]
public bool IsChildOfListView { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
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
IsElement
Indicates if the content is configured as an element
Declaration
[DataMember(Name = "isElement")]
public bool IsElement { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
Key
This is the unique Id stored in the database - but could also be the unique id for a custom membership provider
Declaration
[DataMember(Name = "key")]
public Guid? Key { get; set; }
Property Value
Type |
Description |
System.Nullable<Guid> |
|
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
View Source
Owner
Declaration
[DataMember(Name = "owner")]
public UserProfile Owner { get; set; }
Property Value
View Source
ParentId
Declaration
[DataMember(Name = "parentId", IsRequired = true)]
[Required]
public int? ParentId { get; set; }
Property Value
Type |
Description |
System.Nullable<System.Int32> |
|
View Source
Path
Declaration
[DataMember(Name = "path")]
public string Path { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
PersistedContent
The real persisted content object - used during inbound model binding
Declaration
[IgnoreDataMember]
public IContent PersistedContent { get; set; }
Property Value
View Source
SortOrder
Declaration
[DataMember(Name = "sortOrder")]
public int SortOrder { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
TemplateAlias
Declaration
[DataMember(Name = "template")]
public string TemplateAlias { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
TemplateId
Declaration
[DataMember(Name = "templateId")]
public int TemplateId { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
View Source
Trashed
Declaration
[DataMember(Name = "trashed")]
public bool Trashed { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
View Source
TreeNodeUrl
Property for the entity's individual tree node URL
Declaration
[DataMember(Name = "treeNodeUrl")]
public string TreeNodeUrl { get; set; }
Property Value
Type |
Description |
System.String |
|
View Source
Udi
Declaration
[DataMember(Name = "udi")]
public Udi Udi { get; set; }
Property Value
View Source
UpdateDate
This is the last updated date for the entire content object regardless of variants
Declaration
[DataMember(Name = "updateDate")]
public DateTime UpdateDate { get; set; }
Property Value
Type |
Description |
DateTime |
|
View Source
Updater
Declaration
[DataMember(Name = "updater")]
public UserProfile Updater { get; set; }
Property Value
View Source
Urls
Declaration
[DataMember(Name = "urls")]
public UrlInfo[] Urls { get; set; }
Property Value
View Source
Variants
A collection of content variants
Declaration
[DataMember(Name = "variants")]
public IEnumerable<TVariant> Variants { get; set; }
Property Value
Type |
Description |
IEnumerable<TVariant> |
|