Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Multifield Issue AEM6.3

Avatar

Level 2

Hi all,

I've been looking in the community to find the solution but I couldn't, every problem that I saw in threads had the same answer: look into helpx documents, but they're not the solution they are just tutorials and I followed them, still not working. It working on html but when I wanted to edit the values dialog opens in empty shape. I'm sharing my dialog's content.xml. Should I implement an editconfig dialog?

Best regards,

Ogün Adsay.

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" 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"
   jcr:title="User Menu"
   sling:resourceType="cq/gui/components/authoring/dialog">
  <content
   jcr:primaryType="cq:WidgetCollection"
   sling:resourceType="granite/ui/components/foundation/container">
  <layout
   jcr:primaryType="cq:Widget"
   sling:resourceType="granite/ui/components/foundation/layouts/tabs"
   type="nav"/>
  <items jcr:primaryType="cq:WidgetCollection">
  <tabs
   jcr:primaryType="cq:WidgetCollection"
   jcr:title="General"
   sling:resourceType="granite/ui/components/foundation/container">
  <items jcr:primaryType="cq:Widget">
  <usersubmenu
   jcr:primaryType="cq:WidgetCollection"
   jcr:title="User Submenu"
   sling:resourceType="granite/ui/components/foundation/section">
  <layout
   jcr:primaryType="cq:Widget"
   sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/>
  <items jcr:primaryType="cq:WidgetCollection">
  <tab
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/container">
  <items jcr:primaryType="nt:unstructured">
  <usersubmenudetails
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/form/multifield"
   class="full-width"
   fieldDescription="Click 'Add field' to add a new User Submenu title and links"
   fieldLabel="User Submenu Items">
  <field
   jcr:primaryType="cq:Widget"
   sling:resourceType="granite/ui/components/foundation/form/fieldset"
   acs-commons-nested=""
   name="./myUserSubmenu">
  <layout
   jcr:primaryType="nt:unstructured"
   sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
   method="absolute"/>
  <items jcr:primaryType="cq:Widget">
  <column
   jcr:primaryType="cq:WidgetCollection"
   sling:resourceType="granite/ui/components/foundation/container">
  <items jcr:primaryType="nt:unstructured">
  <title
   jcr:primaryType="cq:Widget"
   sling:resourceType="granite/ui/components/foundation/form/textfield"
   fieldDescription="Enter User Submenu title"
   fieldLabel="User Submenu Title"
   name="./title"/>
  <link
   jcr:primaryType="cq:Widget"
   sling:resourceType="granite/ui/components/foundation/form/pathbrowser"
   fieldDescription="Enter User Submenu Link"
   fieldLabel="User Submenu Link"
   name="./link"
   rootPath="/content"/>
  <flag
   jcr:primaryType="cq:Widget"
   sling:resourceType="granite/ui/components/foundation/form/checkbox"
   checked="{Boolean}false"
   fieldDescription="Testing Flag for checkbox"
   name="./flag"
   text="Flag"
   title="Checkbox Tooltip"/>
  </items>
  </column>
  </items>
  </field>
  </usersubmenudetails>
  </items>
  </tab>
  </items>
  </usersubmenu>
  </items>
  </tabs>
  </items>
  </content>
</jcr:root>

1 Accepted Solution

Avatar

Correct answer by
Level 2

Ok, honestly I didn't watch the video but I found a component example which is working with multifields. I have used this document: Building Experience Manager Components using Granite/Coral Resource Types  and downloaded ready to use component: https://helpx.adobe.com/content/dam/help/en/experience-manager/using/aem64_coral_resourcetypes/_jcr_...

I'm currently working on extending it for my purposes.

Thanks all!

View solution in original post

9 Replies

Avatar

Level 10

For AEM 6.3 - you should look at using granite/coral multifield.

Avatar

Level 10

Seems no better way to show you that a granite/ui/components/coral/foundation/form/multifield works then in a video.

We recommend in 6.3/6.4 that you use granite/ui/components/coral/foundation/form/multifield.

Building Experience Manager Components using Granite/Coral Resource Types

When working with granite/coral - the mf data is stored as nodes under the page.

mfnodes.png

There is no need to worry about JSON, loading ACS-COMMONS, or other issues that were presents with granite Multifields (as opposed to granite/coral multifields)

Avatar

Level 2

Thanks all for the responses. I saw ACS Commons a couple of times, but I couldn't understand what it is. Is it sometehing like a framework or library? How do I install/use it?

Avatar

Level 10

WHy not switch to the latest granite types as shown in the video?

Avatar

Correct answer by
Level 2

Ok, honestly I didn't watch the video but I found a component example which is working with multifields. I have used this document: Building Experience Manager Components using Granite/Coral Resource Types  and downloaded ready to use component: https://helpx.adobe.com/content/dam/help/en/experience-manager/using/aem64_coral_resourcetypes/_jcr_...

I'm currently working on extending it for my purposes.

Thanks all!

Avatar

Level 10

For that article - go through all of it for best experience. Then in MF section - you just need to update dialgo and change Java logic - it all works