Multifield Issue AEM6.3

ogüna 12-10-2018

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>

Accepted Solutions (1)

Accepted Solutions (1)

Answers (8)

Answers (8)

smacdonald2008 12-10-2018

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

smacdonald2008 12-10-2018

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)

ogüna 12-10-2018

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?