You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

.2.4.5 Adding Organization and Structure with Content
.2.4.5.1 contentTypeId
There are two main types of Content entities in a CMS. One type is those that contain 'content' and the other is those that act as placeholders and navigation tools.
Content oriented contentTypeId values descend from DOCUMENT. The children of DOCUMENT are OUTLINE_NODE, PAGE_NODE and SUBPAGE_NODE. Note that contentTypeId says nothing about content format type, whether it is text or image. Those three sub-values indicate whether the content is to be displayed as an outline only or if content is also to be displayed. Another important assumption made here is that content is organized in a heirarchical fashion. It may seem that OUTLINE_NODE is more of a navigation type than a content type, but it is used in conjunction with content that all makes up 'one' document.

WEB_SITE_PUB_PT is a 'publish point' type. This type would be used to divide a site up into different sections (ie. news, products, forums, etc.)

.2.4.5.2 contentAssocTypeId
The contentAssocTypeId is important for allowing content to be 'followed' correctly. A CMS can be a complicated system with content being associated for many purposes other than 'content'. For example, content that represents topics or keywords may be tied to a piece of content, but it would not be displayed when rendering.
One contentAssocTypeId value is SUBSITE. It is used to link Content entities of type, WEB_SITE_PUB_PT, to show that they are a hierarchy of publish points, not subcontent within a document. The value, SUB_CONTENT, is used for that purpose. The value, PUBLISH_LINK, is used to link 'document' to 'publish points'.

  • No labels