Adding custom fields to content items
Use this procedure to add a custom field to a content item, such as news, events, or images. A custom field is a field that you create. For each content item there are default fields, such as author, title, etc. If you need to add different than the already existing fields, you must create a custom field, for example, price. A custom field is associated with the content type. The field appears in the backend when somebody is creating that content type. The custom field can then be filled out by the creator and then displayed on the public part by adding it to the template, which is used to display that content type.
EXAMPLE: When creating an event you can enter its location, starting and ending time, and other predefined parameters. For each event you can add a custom field, for example Dress code. Afterwards, each time an event is created, the creator can fill out this Dress code field. You can make this field to be a multiple choice. You can also choose where or whether to display this field on the website together with each event by modifying the template that is used to display events.
Displaying information entered in a custom field
After you have created a custom field, everybody who is creating or editing the content items for which you have added a custom field can enter information in that field. If for the content type you are creating there are any created custom fields, a Custom fields section appears at the end of the page and the created fields appear in this section.
To display a custom field in the public side of your website, you must add the field to the widget template which you use to display that content type. For more information, see Creating and editing widget templates.
For more information about including a custom field in search indexes, see Defining search indexes.