Click or drag to resize

IContentUnitInstance Interface


Represents an instance of Content Unit placed into a Page \ Presentation

Namespace:  Ingeniux.CMS.Presentation
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.3.169
Syntax
public interface IContentUnitInstance : IDisplayUnit

The IContentUnitInstance type exposes the following members.

Properties
  NameDescription
Public propertyAncestorGroupNames
Gets the names of Group Elements, that are ancestors of the underlying Element of this instance
Public propertyElementId
Gets the id of the underlying Element
Public propertyElementName
Gets the name of the underlying Element
Public propertyIcon
Gets the icon name of this Content Unit Instance
Public propertyParentElementId
Gets the unique id of the underlying Element's parent Element
Public propertyPending

Gets/sets whether this instance is in pending state.

Content Unit Instances in pending state are just placed into Presentation, but the content of the underlying Element is not yet updated.

The state should be taken off when the element is updated

Public propertySourceId
Gets the id of the source Content Unit
Public propertySourceReusable
Gets whether the source Content Unit is Reusable
Public propertyTemplateName
Gets of name of the MVC "View" for this Content Unit Instance
Top
Methods
  NameDescription
Public methodFormat
Generates HTML markup, and appends to the specified html document
(Inherited from IDisplayUnit.)
Public methodGetSourceContentUnit
Retrieves the source Content Unit for this instance
Top
Remarks
The Element to be places on edit form will use the same unique id as the original element in Content Unit for the first placement. If the Unit is reusabled, the seconds and further placements will have new unique ids
See Also