Hi, I have the following issue when making a tree definition xml-file. I can't add or edit data when the xml file is implemented
I have made a screen dump to illustrate:
http://www.lysdal.com/Download/C1_tree_definition.jpg
The ~/App_Data/Composite/TreeDefinitions xml file that fails looks like this:
I have made a screen dump to illustrate:
http://www.lysdal.com/Download/C1_tree_definition.jpg
The ~/App_Data/Composite/TreeDefinitions xml file that fails looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<ElementStructure xmlns="http://www.composite.net/ns/management/trees/treemarkup/1.0" xmlns:f="http://www.composite.net/ns/function/1.0">
<ElementStructure.AllowedAttachments ApplicationName="Concerts">
<DataType Type="Composite.Data.Types.IPage"/>
</ElementStructure.AllowedAttachments>
<ElementStructure.AutoAttachments>
<NamedParent Name="Content" Position="Bottom" />
</ElementStructure.AutoAttachments>
<ElementRoot>
<Children>
<Element Label="Concerts" Id="Live">
<Actions>
<AddDataAction Label="Add concerts" Type="Lysdal.ConcertItem"/>
</Actions>
<Children>
<DataFolderElements Type="Lysdal.ConcertItem" DateFormat="yyyy MMMM" FieldGroupingName="Date" Display="Compact">
<Children>
<DataElements Type="Lysdal.ConcertItem" Label="${C1:Data:Lysdal.ConcertItem:Title}" Display="Auto">
<Actions>
<EditDataAction Label="Edit Concerts" />
<DeleteDataAction Label="Delete Concerts" />
</Actions>
<Filters>
<ParentIdFilter ParentType="Composite.Data.Types.IPage" ReferenceFieldName="PageId" />
</Filters>
<OrderBy>
<Field FieldName="Date" Direction="ascending"></Field>
</OrderBy>
</DataElements>
</Children>
</DataFolderElements>
</Children>
</Element>
</Children>
</ElementRoot>
</ElementStructure>
I have spent a great deal of time to debug so any help would make me happy :-)