Download as PDF

Configuration

The configuration of the object structure windows can be performed using XML. The root element “childrenViews” has the following child elements and attributes for this.

 

Element Description Namespace Number
detailView Configuration section for a list view http://onion.net/modulesystem 0..*
symbolView Configuration section for a symbol view http://onion.net/modulesystem 0..*

 

Attribute Description Namespace Optional
language Default language of the object structure window  http://onion.net/common/i18n No
<childrenViews xmlns="http://onion.net/modulesystem" xmlns:dw="http://onion.net/editor/detailview" xmlns:onion="http://onionworks.net/2004/data" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:i18n="http://onion.net/common/i18n" onion:schema="Onion:http://onion.net/2010/editor/modulesystem/schemata/childrenviews" i18n:language="en">
<detailView schemaLocations="http://onion.net/example/container.xsd" applyToDerivations="false" order="title#descending">
<columns>
<column i18n:key="title" label="Title" id="title" width="50px" align="left" visibility="fixed" minWidth="auto" type="text" />
<column i18n:key="creator" label="Creator" id="creator" width="auto" visibility="visible" minWidth="auto" align="left" type="text" />
</columns>
<childType schemaLocations="http://onion.net/example/item.xsd" structureInvisible="false" applyToDerivations="false">
<column ref="title">
<xsl:value-of select="onion:meta/@onion:name" />
</column>
<column ref="creator">
<xsl:value-of select="onion:meta/@onion:creator" />
</column>
</childType>
</detailView>
<symbolView schemaLocations="http://onion.net/example/imagecontainer.xsd" maxWidth="200" maxHeight="150">
<childType schemaLocations="http://onion.net/example/image.xsd" structureInvisible="true" applyToDerivations="false">
<label>
<xsl:value-of select="onion:meta/@onion:name" />
</label>
<source referenceIdentifier="c.id()" xpath="onion:content/image" />
</childType>
</symbolView>
</childrenViews>