Content types have to be inserted into a module in order to be used. A module can use more than one content type though.
List of content types
Below you find a list of content types that are provided by the CONTENIDO core. Content types are stored in database in the table "type". Content that is stored using a content type can be found in the table "content".
|cContentTypeHtmlhead||Provides a textfield in which HTML text can be entered (with WYSIWYG editor). This type is principally the same as CMS_HTML.|
|CMS_HTML||cContentTypeHtml||Provides a textfield in which HTML text can be entered (with WYSIWYG editor).|
|CMS_TEXT||cContentTypeText||Provides a plain text field in which raw text can be entered.|
|CMS_IMG||cContentTypeImg||Returns the path to an image configured by CMS_IMGEDITOR.|
|CMS_IMGDESCR||cContentTypeImgdescr||Returns the description of an image. This type i configured by CMS_IMGEDITOR.|
|CMS_LINK||cContentTypeLink||Returns the raw link configured by CMS_LINKEDITOR.|
|CMS_LINKTARGET||cContentTypeLinktarget||Returns the target of a link. This type is configured by CMS_LINKEDITOR.|
|CMS_LINKDESCR||cContentTypeLinkdescr||Returns the description of a link. This type is configured by CMS_LINKEDITOR.|
|CMS_HEAD||cContentTypeHead||Provides a plain text field in which raw text can be entered. This type is principally the same as CMS_TEXT.|
|CMS_DATE||cContentTypeDate||Provides a datepicker to select a date from a calendar and a date format. The selected date is then shown in the selected format.|
|CMS_TEASER||cContentTypeTeaser||Provides a configuration dialog to manage dynamic article lists (known as "teaser") which are displayed in the frontend.|
|CMS_FILELIST||cContentTypeFilelist||Provides a configuration dialog to manage dynamic file lists which are displayed in the frontend.|
|CMS_IMGEDITOR||cContentTypeImgeditor||Provides a configuration dialog to select an image for display in frontend.|
|CMS_LINKEDITOR||cContentTypeLinkeditor||Provides a configuration dialog to manage a special link in frontend.|
|CMS_RAW||cContentTypeRaw||Configurable only by and for administrators, not indexable. Available since CONTENIDO version 4.9.5|
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 and images) you MUST use the content type ID, which was used to define the editor.
If you want to develop your own content type you should have a look at the "type" table and an arbitrary content type class (located in contentido/classes/content_types).
This function allows to create text-, image-, link- or other elements dynamically. Thus it is possible to give these elements dynamic IDs without having to use the short notation where you have to know the content types ID in advance.
Please have a look at the forum for questions and help with this code.
This function will return an object of the specified content type. You can use this object to get more information about the content.
Don't forget to take a look at the complete API documentation over here.