Trees, DataElements, and Labels

Topics: General
Dec 30, 2010 at 4:07 PM

I see in the documentation the syntax of ${C1:Data:[TypeName]:[FieldName]} for specifying labels for DataElements when defining tree structures.  I am wondering if there is a way that I can specify multiple fields for labels and do formatting on the labels.


Jan 2, 2011 at 11:46 PM

You can have multiple instances of ${C1:Data:[TypeName]:[FieldName]} within your label definition - the following will print the title and change date for a set of pages:

  <DataElements Label="${C1:Data:Composite.Data.Types.IPage:Title} - ${C1:Data:Composite.Data.Types.IPage:ChangeDate}" 
Type="Composite.Data.Types.IPage" />

DateTime fields gets printed "yyyy mm dd" and as far as I can see there is no way to change this on 'DataElements' themselves - but when you group the data elements in folders based on a DateTime field you have a lot of control (see How to group data elements - hint: you can nest group elements for year, month etc.).

Jan 3, 2011 at 9:09 AM

@mawtex is correct, there is no way of chaning the date on labels, except when grouping.

Jan 3, 2011 at 3:43 PM

Thank you for the help.