Return to doc.sitecore.com

  Tree
Prev Next

Use to create a field which allows a user to select an Item from a content tree.

Client view:

/upload/sdn5/reference/field reference/standard data types/standart_data_types002.png

The tree field type stores the item’s GUID as reference.

Valid default value:

GUID string. For example: {6D12058D-A949-4DDB-B081-EDC7A675D5AB}

Source:

Use the Source field to specify the Item which will be the entry point for lookup (i.e. the root item).

For example, you want to direct the user straight to the list of shapes instead, but not make one browse the entire content tree. In this case, you should specify the shapes Item which contains the shapes as the source for lookup.

/sitecore/content/Home/Shapes

You will observe the following behavior in the Client:

/upload/sdn5/reference/field reference/standard data types/standart_data_types1.png 

For information about accessing the field values programmatically, please follow the link below:

Accessing Tree field value in C#


Prev Next