Hi,
I've searched this forum and came across similar questions, but didn't find a solution that solved my problem.
I want to use a html5smartimage xtype in my dialog, which is part of mtmulticompositefield.
The dialog looks OK to me when I open it, but the problem I'm facing is that I cannot drag and drop any image on the image (via siteadmin).
Do I miss certain properties?
Should I setup my dialog in a different way?
My dialog.xml (issue is situated in the 'itemImage' section):
<?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:Panel"
title="Content">
<items jcr:primaryType="cq:WidgetCollection">
<title
jcr:primaryType="cq:Widget"
fieldLabel="Title"
name="./title"
xtype="textfield"/>
<items jcr:primaryType="cq:WidgetCollection">
<textAndImages
jcr:primaryType="cq:Widget"
hideLabel="false"
border="true"
fieldLabel="Text and images"
name="./imagesAndTextList"
orderable="Boolean{true}"
xtype="mtmulticompositefield">
<fieldConfigs jcr:primaryType="cq:WidgetCollection">>
<itemText
jcr:primaryType="cq:Widget"
fieldLabel="Text"
name="uspText"
xtype="richtext">
<rtePlugins jcr:primaryType="nt:unstructured">
<format jcr:primaryType="nt:unstructured" features="[bold,italic]"/>
<justify jcr:primaryType="nt:unstructured" features="[]"/>
<links jcr:primaryType="nt:unstructured" features="[modifylink,unlink,anchor]"/>
<lists jcr:primaryType="nt:unstructured" features="[]"/>
<edit jcr:primaryType="nt:unstructured"
path="/apps/mycommon/settings/richtext/_jcr_content/edit.infinity.json"
xtype="cqinclude"/>
</rtePlugins>
<htmlRules jcr:primaryType="nt:unstructured">
<blockHandling
jcr:primaryType="nt:unstructured"
removeSingleParagraphContainer="{Boolean}true"/>
</htmlRules>
</itemText>
<itemImage
jcr:primaryType="cq:Widget"
ddGroups="[media]"
fileNameParameter="./itemImage/fileName"
fileReferenceParameter="./itemImage/fileReference"
fieldLabel="The image"
name="./itemImage/file"
title="Item Image"
height="150"
xtype="html5smartimage"
allowUpload="{Boolean}false"/>
</fieldConfigs>
</textAndImages>
</items>
</items>
</jcr:root>
Thanks for the help!
Views
Replies
Total Likes