[opencms-dev] OpenCms 8.5.1 - Add choice field programmatically
Marc Johnen
opencms at johnen.biz
Fri Jun 28 18:15:03 CEST 2013
Hi Sandrine,
there are quite some examples in the latest demo.
Have a look at my quick search:
./system/modules/biz.johnen.opencms.jv8.flower/schemas/flower.xsd:4:
<xsd:include
schemaLocation="opencms://system/modules/biz.johnen.opencms.jv8.flower/schemas/nested/paragraphchoice.xsd"/>
./system/modules/biz.johnen.opencms.jv8.flower/schemas/flower.xsd:17:
<xsd:element name="ParagraphChoice" type="OpenCmsJParagraphChoice"
maxOccurs="5" />
./system/modules/biz.johnen.opencms.jv8.flower/schemas/nested/paragraphchoice.xsd:7:
<xsd:element name="JParagraphChoices" type="OpenCmsJParagraphChoices"/>
./system/modules/biz.johnen.opencms.jv8.flower/schemas/nested/paragraphchoice.xsd:9:
<xsd:complexType name="OpenCmsJParagraphChoices">
./system/modules/biz.johnen.opencms.jv8.flower/schemas/nested/paragraphchoice.xsd:11:
<xsd:element name="JParagraphChoice" type="OpenCmsJParagraphChoice"
minOccurs="0" maxOccurs="unbounded"/>
./system/modules/biz.johnen.opencms.jv8.flower/schemas/nested/paragraphchoice.xsd:15:
<xsd:complexType name="OpenCmsJParagraphChoice">
./system/modules/biz.johnen.opencms.jv8.flower/schemas/nested/paragraphchoice.xsd:16:
<xsd:choice minOccurs="0" maxOccurs="5">
./system/modules/biz.johnen.opencms.jv8.flower/schemas/nested/paragraphchoice.xsd:19:
</xsd:choice>
./system/modules/com.alkacon.opencms.v8.infobox/schemas/nested/furtherinfolink.xsd:14:
<xsd:choice>
./system/modules/com.alkacon.opencms.v8.infobox/schemas/nested/furtherinfolink.xsd:18:
</xsd:choice>
./system/modules/com.alkacon.opencms.v8.flexible/schemas/flexible.xsd:4:
<xsd:include
schemaLocation="opencms://system/modules/com.alkacon.opencms.v8.flexible/schemas/nested/flexiblechoice.xsd"/>
./system/modules/com.alkacon.opencms.v8.flexible/schemas/flexible.xsd:17:
<xsd:element name="Choice" type="OpenCmsV8FlexibleElementChoice"
minOccurs="0" />
./system/modules/com.alkacon.opencms.v8.flexible/schemas/nested/flexiblechoiceimage.xsd:5:
<xsd:element name="V8FlexibleElementChoiceImages"
type="OpenCmsV8FlexibleElementChoiceImages"/>
./system/modules/com.alkacon.opencms.v8.flexible/schemas/nested/flexiblechoiceimage.xsd:7:
<xsd:complexType name="OpenCmsV8FlexibleElementChoiceImages">
./system/modules/com.alkacon.opencms.v8.flexible/schemas/nested/flexiblechoiceimage.xsd:9:
<xsd:element name="V8FlexibleElementChoiceImage"
type="OpenCmsV8FlexibleElementChoiceImage" minOccurs="0"
maxOccurs="unbounded"/>
./system/modules/com.alkacon.opencms.v8.flexible/schemas/nested/flexiblechoiceimage.xsd:13:
<xsd:complexType name="OpenCmsV8FlexibleElementChoiceImage">
./system/modules/com.alkacon.opencms.v8.flexible/schemas/nested/flexiblechoice.xsd:4:
<xsd:include
schemaLocation="opencms://system/modules/com.alkacon.opencms.v8.flexible/schemas/nested/flexiblechoiceimage.xsd"/>
./system/modules/com.alkacon.opencms.v8.flexible/schemas/nested/flexiblechoice.xsd:6:
<xsd:element name="V8FlexibleElementChoices"
type="OpenCmsV8FlexibleElementChoices"/>
./system/modules/com.alkacon.opencms.v8.flexible/schemas/nested/flexiblechoice.xsd:8:
<xsd:complexType name="OpenCmsV8FlexibleElementChoices">
./system/modules/com.alkacon.opencms.v8.flexible/schemas/nested/flexiblechoice.xsd:10:
<xsd:element name="V8FlexibleElementChoice"
type="OpenCmsV8FlexibleElementChoice" minOccurs="0" maxOccurs="unbounded"/>
./system/modules/com.alkacon.opencms.v8.flexible/schemas/nested/flexiblechoice.xsd:14:
<xsd:complexType name="OpenCmsV8FlexibleElementChoice">
./system/modules/com.alkacon.opencms.v8.flexible/schemas/nested/flexiblechoice.xsd:15:
<xsd:choice minOccurs="0" maxOccurs="5">
./system/modules/com.alkacon.opencms.v8.flexible/schemas/nested/flexiblechoice.xsd:16:
<xsd:element name="Image" type="OpenCmsV8FlexibleElementChoiceImage"
minOccurs="0" />
./system/modules/com.alkacon.opencms.v8.flexible/schemas/nested/flexiblechoice.xsd:19:
</xsd:choice>
./system/modules/com.alkacon.opencms.v8.textblock/schemas/nested/option.xsd:16:
<xsd:choice minOccurs="0" maxOccurs="5">
./system/modules/com.alkacon.opencms.v8.textblock/schemas/nested/option.xsd:19:
</xsd:choice>
-----
Greetings
Marc Johnen
http://www.johnen.biz
--
View this message in context: http://opencms.996256.n3.nabble.com/OpenCms-8-5-1-Add-choice-field-programmatically-tp23399p23404.html
Sent from the OpenCMS mailing list archive at Nabble.com.
More information about the opencms-dev
mailing list