Click or drag to resize

IContentUnit Interface


Represents a combination of Model and View in the MVC concept. It contains an Element that can be inserted into Page content, and the MVC view that renders the Element.

Content units are the corner stones of Page Builder. They can be instantiated as Content Unit Instances, and placed into a Page Presentation.

A CMS Site with a complete set of Content Units, allows users with necessary permission to customize page rendering within CMS Application.

Namespace:  Ingeniux.CMS.Presentation
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
public interface IContentUnit : IEntity<IPresentationManager>, 
	IEntity, IEntityEvents

The IContentUnit type exposes the following members.

Properties
  NameDescription
Public propertyArchived
Gets/sets the archived value of this entity
(Inherited from IEntity.)
Public propertyContentUnitSecurity
Gets/sets the security for this Content Unit, which is a list of User Groups, that will not see this Content Unit on Page Builder UI
Public propertyCreated
Gets the entity's creation date.
(Inherited from IEntity.)
Public propertyCreationUser
Gets the ID of the User who created this entity.
(Inherited from IEntity.)
Public propertyElement

Gets/sets the Element this Content Unit holds.

The element is the "Model" part of the Content Unit.

This element will inserted into Page content, when the Content Unit is placed into Page Presentation.

Public propertyHasThumbnail
Gets whether this Content Unit has thumbnail or not
Public propertyIcon
Gets/sets the icon name of the Content Unit. Icon is just for easy identification purpose on Page Builder UI. It has nothing to do with actual Content Unit rendering
Public propertyLastModified
Gets the date when the entity was most recently modified.
(Inherited from IEntity.)
Public propertyLastModifiedUser
Gets the ID of the User who lasted edited the entity.
(Inherited from IEntity.)
Public propertyManager
Gets the manager that retrieved this entity instance.
(Inherited from IEntityTManager.)
Public propertyRestrictiveSchemaNames
Gets the list of schema names. If the list is not empty, this Content Unit can only be placed on Page created with these Schemas
Public propertyReusable
Gets/sets whether this Content Unit can be placed multiple times on a Page Presentation. If false, it can only be placed once on a page.
Public propertySession
Gets the session that retrieved this entity. An entity is always session-specific.
(Inherited from IEntity.)
Public propertySessionId
Gets the unique ID of the session that retrieved this entity.
(Inherited from IEntity.)
Public propertyTemplateName
Gets/sets the name of the MVC "View", that is in charge of rendering the Content. It normally matches the Element's tag name.
Public propertyThumbnailId

Gets the unique id of the thumbnail. The thumbnail id is the file name of the thubmnail for this Content Unit.

The prupose of a thumbnail for a Content Unit, is to demonstrate what this Content Unit looks like when place on a Page.

Public propertyThumbnailRelativePath
Gets the path of the thumbnail image, relative to the root path of the CMS site
Top
Methods
  NameDescription
Public methodBuiltInView

Retrieves the Asset that contains the content of the "View" for rendering of this.

If a Content Unit has a built-in View, it will not seek "View" file in Dynamic Site Server "Views" folder anymore.

Built-in view gives Page Builder much more flexibility. Developers of the Content Unit can directly work on the "View", without ever leaving the CMS client.

Public methodCheckInBuiltInView
Checks in the built-in View Asset, to specified Publishing Targets. The view is only effective on published content after check in. This method will mark the View Asset for publish for the specified targets on its latest version.
Public methodCreateBuiltInView
Creates the built-in View Asset for this Content Unit
Public methodRemoveBuiltInView
Removes the built-in View Asset. This action move the Asset to recycle folder, and unassociate the Content Unit with built-in View
Public methodSetThumbnail
Sets the content of thumbnail for this Content Unit
Public methodTouch
Updated the entity's LastModified value to the current time.
(Inherited from IEntity.)
Public methodUpdateBuildInView
Updates content of the Built-in View.
Public methodValidateData
Validates this entity's data. Implemented by concrete inheriting types.
(Inherited from IEntity.)
Public methodValidateUserPermission
Validates the user permission on the current entity. Implemented by concrete inheriting types. It is called automatically upon saving an entity.
(Inherited from IEntity.)
Top
Events
  NameDescription
Public eventAfterEntitySave
This event is fired after a Entity object is saved.
(Inherited from IEntityEvents.)
Public eventBeforeEntitySave
This event is fired before any Entity object is about to be saved.
(Inherited from IEntityEvents.)
Top
See Also