Base Content Types - Documentation topics on: base content types,content,content types,files,forms,pages,widgets,.

Base Content Types

There are 5 different Base Types that can be created in dotCMS and each is used for a different purpose.  They are:

  • Content - "Normal" content is very much like a content database. Content is made up of fields that are comprised of the Standard Field Types, the WYSIWYG FieldTag and Category Fields, etc.  Nearly all fields can be made searchable, and can be accessed via the RESTful APIs.  Unlike Files (see below), Content is not addressable via a standard url.

  • File - Files can be contributed by Content Publishers using File Content Types. Files can be saved anywhere on a site's folder hierarchy, including the site itself - provided the proper role based permissions are present.  Different File Content Types can be created to segregate files by File Content Type, and custom fields can be added for each File Content Type to add to the information detail stored for each file. For example, a Video might need an additional "thumbnail", screenshot, or length fields, whereas a Document, might need a "Number of Pages", "Department" field, and so on. Files can be referenced and managed via the website browser, as well as via WEBDAV and/or the Content tab.

  • Form - Forms allow non technical CMS users to quickly create web forms to collect and manage data.  Form entries are just like "normal" content - manageable, exportable, and can be queried like standard content.  When creating a Form Type, dotCMS automatically adds special fields called Form Title, Form Email, Form Return Page, and Form Host. 

  • Page - Page Content Types are used in dotCMS to create pages.  dotCMS downloads with a "Page Asset" Content Type that has all the basic fields to create a page.  However, if custom Pages are desired, that have custom properties or behaviors, additional Page Content Types can be created.  For more information, see the Creating A Page Content Type documentation.

  • Widget - A Widget Type allows a web developers to create a parameter based content pull that renders itself.  Widgets, when they are displayed, use the contributor defined parameters to automatically display listings of content. The velocity/javascript/html in the Widget Type code field reacts to the simple user input parameters, and displays a customized dynamic listing.  Widgets are intended to be built by web developers and used by content contributors to allow contributors to add advanced functionality to their pages without requiring coding experience. Widgets are extremely powerful and can be used to create complete front end applications.  See the example of a YouTube Video Widget below which uses one custom search field to place a YouTube video on a page.

YouTube Video widget: