Content type is the type of information that you would like to present on your website. For example, if you would like to have News content on your website, then you can define the content type News with the elements Title, Body and Author.
Content type definition will generate the content input form and list page.
To add a new content type, first click on Database and then click on Content type. Now click on the Create button to create a new content type.
In the Create content type screen, first fill in an unique name for your content type. Then click on Create field to add a field to your content type. Relative content types such as category or embedded content type can be defined in the Folder setting.
You can add as many fields as you like.
A content type can have the following basic information:
- Name: Name of your field, excludes the following characters:\/:*?<>|
- Label: Descriptive label of your field on the content editing page
- ControlType: The way that you would like to input your content. For example, a textbox, dropdownlist or other control types.
- DataType: In what form your information should be stored.
- Default value: The initial value when you are adding a new content item.
- Order: Order of this field in the content editing page
- Primary field: Primary fields will be used as a title or summary to describe your content item
- Content list page:Show this field in the CMS content list page
The Advanced tab contains the following informaiton:
- Tooltip: Input tip while users entering content
- Length: The max string length of this field value
- AllowNull: allows null value in this field.
- Modifiable: Enable the modification of this field in the content editing page.
The Validation tab contains rules you can define to validate data before submission. Click the add icon to add as many rules as you like.
In the relational database definition, you understand the concept of one to one and many to many relation. In the content manager experience, these are often needed to define category information or embedded content.
Kooboo CMS has both, and the relation is defined in the folder level. When you are creating a new folder or changing the setting of a folder, you will be able to define their relation. We will explain more on this in the Folder section.
System fields are fields that are generated and used by the CMS itself. In some cases you may want to use and change values of these fields. Take the following fields for example:
UserKey: This is used to generate content detail page url.
Sequence: a number that will be used to sort content display order.
To make those fields available for modification, you create a field and give it the name as indicated below. It will then appear in the content edit page for modification.