Is it possible to have a multifield and each field inside the multifield is a drop down box
Any examples would be appreciated with regards to a dialog.xml perspective
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Off cource you can. In 5.3 there was an issue but should work with latest version. Example below.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="cq:Dialog"
height="650"
title="Sample Component"
width="650"
xtype="dialog">
<items jcr:primaryType="cq:TabPanel">
<items jcr:primaryType="cq:WidgetCollection">
<tab1
jcr:primaryType="cq:Panel"
title="Basic">
<items jcr:primaryType="cq:WidgetCollection">
<languages
jcr:primaryType="cq:Widget"
fieldDescription="If no Language is selected, default is English"
fieldLabel="Languages"
name="./languages"
xtype="multifield">
<fieldConfig
jcr:primaryType="nt:unstructured"
allowBlank="false"
type="select"
xtype="selection">
<options jcr:primaryType="cq:WidgetCollection">
<en
jcr:primaryType="nt:unstructured"
text="English"
value="english"/>
<es
jcr:primaryType="nt:unstructured"
text="Spanish
"
value="spanish"/>
</options>
</fieldConfig>
</languages>
</items>
</tab1>
</items>
</items>
</jcr:root>
Views
Replies
Total Likes
Off cource you can. In 5.3 there was an issue but should work with latest version. Example below.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="cq:Dialog"
height="650"
title="Sample Component"
width="650"
xtype="dialog">
<items jcr:primaryType="cq:TabPanel">
<items jcr:primaryType="cq:WidgetCollection">
<tab1
jcr:primaryType="cq:Panel"
title="Basic">
<items jcr:primaryType="cq:WidgetCollection">
<languages
jcr:primaryType="cq:Widget"
fieldDescription="If no Language is selected, default is English"
fieldLabel="Languages"
name="./languages"
xtype="multifield">
<fieldConfig
jcr:primaryType="nt:unstructured"
allowBlank="false"
type="select"
xtype="selection">
<options jcr:primaryType="cq:WidgetCollection">
<en
jcr:primaryType="nt:unstructured"
text="English"
value="english"/>
<es
jcr:primaryType="nt:unstructured"
text="Spanish
"
value="spanish"/>
</options>
</fieldConfig>
</languages>
</items>
</tab1>
</items>
</items>
</jcr:root>
Views
Replies
Total Likes
Views
Likes
Replies