A content type is a framework used to specify what information is included in a content item. You must be a content administrator to create content types and share them with others.
When a repository is created, a content type can be included with that repository so it’s available for use there. In order for other people to use a content type to create a new content item, it must be shared with people.
Content types (1) can have layouts (2) associated with them, which determine how they appear and what information is used in that particular layout. For example, you may only want a subset of information to appear on an employee contact list, but you might want an employee picture, location, and job title appear in another location on your website. When you create a content item using a content type, you can preview how it will look with different layouts.
Creating Content Types
In order to create a content type, you must have content administrator privileges. After it’s created, you need to share the content type with others so they can use it to create content items. Those content items can then be used on a website, or in a brochure, or wherever they might be needed.
Sign in as a content administrator in your browser and click Content under Administration in the left navigation menu.
Select Content Types from the drop-down menu.
To create a new content type, click Create.
Enter a name and optional description for your content type.
Drag a data field into the content type definition.
The settings page for the data field opens:
- Enter a display name and optional description for your data field.
- Optionally, edit the field name. This name must be unique.
- If you selected text, media, or reference, select whether the field allows only a single value or multiple values and the number of values allowed.
- Select if the field is required when users submit the content.
- Select if the field values should be inherited from the
master type. For example, you may want a text field to display the
company name or stock symbol as entered when a content item is created using this content
type across all languages. Or you may want to prepopulate an image
field to always use the approved company logo for all
Note:When selecting Inherit from master, Do not translate is automatically selected. If editing a content type that has been used to create content items of different languages already, selecting Inherit from master causes the field values in the existing draft items to use the value in the master item. If the languages have already been published, then the preexisting value will remain in use until a new draft item of that language is published.
- If you selected text, large text, or embedded content, select whether or not to translate the data entered into the fields. For example, a product description may be translated, but the product name or brand name might only be valid in the original language.
- Also if you selected text, large text, or embedded content, optionally provide a comment or note that provides additional instructions for the translator.
On the appearance page for the data field, set what your data field will look like and if you want to apply any kind of validation. Each data field has different appearance values, such as validation, minimum or maximum length, the type of text editor to use (text area, rich-text editor, or markdown editor), or if the data needs to follow a particular pattern, such as a valid email address or zip code. For details on the available data fields and their options, see Data Fields.
When you add a large text field and set the appearance to rich-text editor or markdown editor, you can select the type of toolbar: standard, basic, or custom. For the custom markdown editor, you select which buttons to include in the toolbar. For custom rich-text editor, see Customize the Rich-Text Editor Toolbar.
You can group related fields to make it easier for contributors to work with content item forms.
- To create a group, click Add Group, and then name the grouping. Drag data fields to the groups as desired.
- Select whether you want the group to be collapsed by default when viewed in the content item editor.
- To edit a group name, click .
- To delete a group, click . Select whether you want to remove the data fields along with the group, or if you want to move the data fields to another group.
On the Friendly URL page for the content type, you can specify a readable URL for content items created using this content type.
On the Content Layout page for the content type, select the layouts that are associated with this content type for the mobile version and the desktop version. If the content item created using this type will be used on a website, the content layouts should be created and uploaded prior to creating a content type. You can associate additional layouts by clicking Add Layout Style then entering a name and choosing a layout. See Manage Custom Components and Layouts.
When a content item is created using this content type, the person creating the item can preview how the content item will appear using any of these layouts.
If you want the content item creator to be able to see what the content item will look like on a particular site page, select the Oracle Content and Experience-created site and page, or enter an external site and page URL. External URLs can include placeholders for
slug. For example,
On the Tile View page for the content type, you can specify a custom tile view. Custom tile views let you configure how the data fields of content items are displayed on the Assets page, based on content type. Select an option under the Display area of the Tile View page and configure the fields of the content type to be displayed as media, title, or text data in the tile view. In the available options, media data fields are represented by gray rectangles, title data fields are shown as a gray bar, and text data fields are shown as slightly smaller gray bars.
Share Content Types
You must share a content type with others in order for them to use it to create content items. Sharing a content type is like sharing any file or folder. Just select the type, click Members, and choose members to add to the type and choose the role they can have when using the type. You can share with individuals or with groups.
Users will be able to see all associated content types in the filter pane on the asset page, and they can view and edit items of those types without explicit sharing. However, in order to create a new content item, you must share the content type with users.