Skip to end of metadata
Go to start of metadata

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

Compare with Current View Page History

« Previous Version 4 Next »

A content type in CONTENIDO is a place where authors can enter or select data to display on the frontend page. 

List of available content types

Below you find a list with all content types. Content types are stored in database in the table "type".

Content type nameName of corresponding classDescription

CMS_HTMLHEAD

cContentTypeHtmlheadProvides a textfield in which HTML text can be entered (with WYSIWYG editor). This type is principally the same as CMS_HTML.
CMS_HTMLcContentTypeHtmlProvides a textfield in which HTML text can be entered (with WYSIWYG editor).
CMS_TEXTcContentTypeTextProvides a plain text field in which raw text can be entered.
CMS_IMGcContentTypeImgReturns the path to an image configured by CMS_IMGEDITOR.
CMS_IMGDESCRcContentTypeImgdescrReturns the description of an image. This type i configured by CMS_IMGEDITOR.
CMS_LINKcContentTypeLinkReturns the raw link configured by CMS_LINKEDITOR.
CMS_LINKTARGETcContentTypeLinktargetReturns the target of a link. This type is configured by CMS_LINKEDITOR.
CMS_LINKDESCRcContentTypeLinkdescrReturns the description of a link. This type is configured by CMS_LINKEDITOR.
CMS_HEADcContentTypeHeadProvides a plain text field in which raw text can be entered. This type is principally the same as CMS_TEXT.
CMS_DATEcContentTypeDateProvides a datepicker to select a date from a calendar and a date format. The selected date is then shown in the selected format.
CMS_TEASERcContentTypeTeaserProvides a configuration dialog to manage dynamic article lists (known as "teaser") which are displayed in the frontend.
CMS_FILELISTcContentTypeFilelistProvides a configuration dialog to manage dynamic file lists which are displayed in the frontend.
CMS_IMGEDITORcContentTypeImgeditorProvides a configuration dialog to select an image for display in frontend.
CMS_LINKEDITORcContentTypeLinkeditorProvides a configuration dialog to manage a special link in frontend.

Using content types

CONTENIDO comes with several content types for different purposes. Content types are defined and set in the specific module and have two display modes: the output mode for the frontend and the edit mode for the backend.

Every content type has its unique content ID. That gives you the possibility to use multiple same content types within the same article but with different content.

The module code parser detects content types by it's short notation. This is like accessing an array entry: CONTENT_TYPE[ID]. If you define the content ID twice or more, that content type will manage the same content. When you are using content types which only return values (e.g. for links an images) you MUST use the content type ID, which was used to define the editor.

Simplified code block for module output
<?php
echo "CMS_HTML[1]";
 
echo "Managing Link: CMS_LINKEDITOR[2]";
echo "CMS_LINK[2] with target CMS_LINKTARGET[2]";
?>
  • No labels