[EMAIL PROTECTED] wrote:
Hi all,
I am not able to input a custom property of a custom document type in the
'Modify' tab.
In my schema I have an element like this :
<xs:complexType name="stringList">
<xs:sequence>
<xs:element name="stringItem" type="xs:string" default=""/>
</xs:sequence>
</xs:complexType>
<xs:element name="keywords" type="nxs:stringList" />
I define a widget in my layout contrib like this :
<widget name="keywords" type="list">
<labels>
<label mode="any">keywords</label>
</labels>
<translated>true</translated>
<fields>
<field>kmd:keywords</field>
</fields>
<subWidgets>
<widget name="keyword" type="text">
<fields>
<field>stringItem</field>
</fields>
</widget>
</subWidgets>
</widget>
What am I doing wrong ?
Kr.
You'll have to create a complex type and refer to it in the stringList
definition ("nxs:stringItem" instead of "xs:string")
<xs:complexType name="stringItem">
<xs:sequence>
<xs:element name="stringItem" type="xs:string" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="stringList">
<xs:sequence>
<xs:element name="stringItem" type="nxs:stringItem" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
/JM
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm