Configure a field

Abstract

How to configure field properties, specify a default folder for an image field, and configure the features available in a Rich Text field.

Fields are the areas within which the data entered into Sitecore is controlled. Through fields, which you can group into sections, you can organize and control the amount and type of data a user enters. Fields are organized by their field type.

This topic describes procedures to configure data template field properties.

To configure the properties of a data template field:

  1. In the Template Manager or the Content Editor, expand the data template definition item and the data template section definition item containing the field, and then select the data template field definition item.

  2. In the data template field definition item, enter field properties.

To specify the default location in the content tree for a data template field of the type Image:

  • Set the Source property in the data template field definition item to a path starting with the tilde character (~). The selection list defaults to this location, but users are able to navigate to the root of the Media Library.

For example, to default the location of the selector for an image field to /Sitecore/Media Library/Images, set the Source property in the field definition item as follows:

~/Sitecore/Media Library/Images

Note

You cannot specify both a root item and a default folder for a data template field of the type File or Image.

To specify the root item for a data template field of type File or Image:

  • Set the Source property in the field definition item as described in Control the list of items in a Selection field.

    For example, to allow users of an Image field type to select a descendant of /Sitecore/Media Library/Images, set the Source property in the field definition item as follows:

/Sitecore/Media Library/Images

The Rich Text Editor (RTE) profiles control features available in Rich Text Editor field types.

To configure an RTE field type:

  • Set the Source property of an RTE field definition item to the path to an RTE profile definition item within /Sitecore/System/Settings/Html Editor Profiles in the Core database.