Tree Schema Definition Reference

DataElements

This element defines the data type to retrieved data items from. It has the following attributes:

  • Type
  • Label
  • ToolTip
  • ShowForeignItems
  • Display
  • BrowserUrl
  • Icon
  • OpenedIcon

It can contain the Children, Actions, OrderBy and Filters elements.

Type

The data interface type name. Required.

The data type name must include namespaces.

Label

A custom label for each data item. Optional. Defaults to the value of the data type’s Label field.

Use “${C1:Data:[TypeName]:[FieldName]}” to get a field value of a parent (or self) data element.

ToolTip

A custom tooltip for each data item. Optional. Defaults to the value of the custom Label (if specified) or to the value of the data type’s Label field.

Use ”${C1:Data:[TypeName]:[FieldName]}” to get a field value of a parent (or self) data element.

ShowForeignItems

When set to “true”, data items not yet localized are displayed with a “Localize” action. Optional. Defaults to “true”.

Its possible values are “true” or “false”.

Display

A mode in which an element that might have child elements is displayed. Is characterized by two aspects:

  • Whether to display the element that has no child elements
  • Whether to show a “plus” sign next to the element to allow expanding it

Optional. Defaults to “Lazy”.

Its possible values are:

  • Lazy: Shows all elements even though they might have no child elements and always show the “+” sign next to these elements
  • Compact: Only shows the elements that has child elements; hides all the elements without child elements
  • Auto: Shows all elements even though they might have no child elements, but only shows the “+” sign if the element has child elements.

BrowserUrl

A custom URL for each data element to display in the C1 Console browser when the element is focused. Optional.

Use “${C1:Data:[TypeName]:[FieldName]}” to get a field value of a parent (or self) data element.

Icon

The icon of the element when collapsed. Optional.

The names of C1 CMS standard icons you can use in your application are listed in ~\Composite\images\icons\StandardIcons.xml

OpenedIcon

The icon of the element when expanded. Optional.

The names of C1 CMS standard icons you can use in your application are listed in ~\Composite\images\icons\StandardIcons.xml