﻿<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="Downloads">
    <DataType Type="Composite.Data.Types.IPage" Position="Top"/>
	</ElementStructure.AllowedAttachments>

	<ElementRoot>
		<Children>
      <Element Id="PageDownloadsRootId" Label="Downloads" ToolTip="Page-related downloadable files" Icon="down">
        <Children>
          <DataElements Type="Demo.C1ConsoleApps.Downloads" Icon="website-create-website-file">
            <Filters>
              <ParentIdFilter ParentType="Composite.Data.Types.IPage" ReferenceFieldName="Page"/>
            </Filters>
            <OrderBy>
              <Field FieldName="Text" Direction="ascending"/>
            </OrderBy>
            <Actions>
              <EditDataAction Label="Edit Download Link" Icon="website-edit-website-file"/>
              <DeleteDataAction Label="Delete Download Link" Icon="website-delete-website-file"/>
            </Actions>
          </DataElements>
        </Children>
        <Actions>
          <AddDataAction Type="Demo.C1ConsoleApps.Downloads" Label="Add Download Link" Icon="website-create-website-file"/>
        </Actions>
      </Element>
		</Children>
	</ElementRoot>
	
</ElementStructure>
