Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

multicompositepanel not appearing properly in dialog

Avatar

Level 2

I have added multicompositepanel in one of the project

It is working fine with respect to data on ui.

but when i reopen the dialog , multicompositepanel is not able to retain the structure in dialog.

so editing existing content is not possible.

dialog config:

<menudialog1.jpgdialog2.jpg

jcr:primaryType="cq:Widget"

title="Navigation Menu"

xtype="panel">

<items jcr:primaryType="cq:WidgetCollection">

<testimonials

jcr:primaryType="cq:Widget"

fieldDescription="Click to add Testimonials"

fieldLabel="Add Testimonials"

matchBaseName="false"

name="./testimonials"

width="500"

xtype="multicompositefield">

<fieldConfigs jcr:primaryType="cq:WidgetCollection">

<name

jcr:primaryType="cq:Widget"

fieldLabel="Name"

name="name"

width="300"

xtype="textfield"/>

<testimonialsDetails

jcr:primaryType="cq:Widget"

fieldDescription="Click + to add estimonials Details(maximum 2 links)"

fieldLabel="Testimonials Details"

name="testimonialsDetails"

title="Testimonials Details"

width="600"

xtype="multifield">

<fieldConfig

jcr:primaryType="nt:unstructured"

hideLabel="false"

xtype="multifieldpanel">

<items jcr:primaryType="cq:WidgetCollection">

<titleDetail

jcr:primaryType="cq:Widget"

allowBlank="false"

fieldDescription="Enter title for testimonial"

fieldLabel="Title"

key="titleDetail"

width="3x100"

xtype="textfield"/>

<headerDetail

jcr:primaryType="cq:Widget"

allowBlank="false"

fieldDescription="Enter header for testimonial"

fieldLabel="Header"

key="headerDetail"

width="300"

xtype="textfield"/>

<imageDetail

jcr:primaryType="cq:Widget"

allowBlank="false"

fieldDescription="Select Image for testimonial"

fieldLabel="Image"

key="imageDetail"

width="300"

xtype="pathfield"/>

<descDetail

jcr:primaryType="cq:Widget"

allowBlank="false"

fieldDescription="Enter Description for testimonial"

fieldLabel="Description"

key="descDetail"

width="500"

xtype="textfield"/>

</items>

</fieldConfig>

</testimonialsDetails>

</fieldConfigs>

</testimonials>

</items>

</menu>

let me know what else i have to add to make this work.

1 Accepted Solution

Avatar

Correct answer by
Level 2

issue is sorted.

changed dialog structure and it worked.

View solution in original post

3 Replies

Avatar

Level 10

What version of AEM are you using. If using 6.2/6.3 - you should be looking at writing this in Granite - as discussed here: Creating a Granite/Coral 6.3 Multifield HTL component for Adobe Experience Manager

Avatar

Correct answer by
Level 2

issue is sorted.

changed dialog structure and it worked.