4 Replies Latest reply on May 17, 2018 12:24 AM by anj8488

    AEM6.3 - Issue with a pathfield in a multifield dialog

    elizabethp60981482 Level 1

      Hi,

      I am using the pathfield from granite/ui/components/coral/foundation/form/pathfield in many places of our website and I never had a problem.

      Now, I am trying to use it on a multifield, and happens that if I select a path the value is stored but its not retrieved when I open the dialog again.

      Does anyone knows some workaround to correct this?

      Below are my dialog. Thanks in advance!

       

      <?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="nt:unstructured"

          jcr:title="Carousel Component"

          sling:resourceType="cq/gui/components/authoring/dialog">

          <content

              jcr:primaryType="nt:unstructured"

              sling:resourceType="granite/ui/components/foundation/container">

              <layout

                  jcr:primaryType="nt:unstructured"

                  sling:resourceType="granite/ui/components/foundation/layouts/tabs"

                  type="nav"/>

              <items jcr:primaryType="nt:unstructured">

                  <carousel-component

                      jcr:primaryType="nt:unstructured"

                      jcr:title="Example"

                      sling:resourceType="granite/ui/components/foundation/section">

                      <layout

                          jcr:primaryType="nt:unstructured"

                          sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"

                          margin="{Boolean}false"/>

                      <items jcr:primaryType="nt:unstructured">

                          <column

                              jcr:primaryType="nt:unstructured"

                              sling:resourceType="granite/ui/components/foundation/container">

                              <items jcr:primaryType="nt:unstructured">

                                  <item

                                      jcr:primaryType="nt:unstructured"

                                      sling:resourceType="granite/ui/components/foundation/form/multifield"

                                      class="foundation-layout-util-maximized-alt long-label"

                                      fieldLabel="Item Carousel component">

                                      <field

                                          jcr:primaryType="nt:unstructured"

                                          sling:resourceType="granite/ui/components/foundation/form/fieldset"

                                          acs-commons-nested=""

                                          name="./carousel">

                                          <layout

                                              jcr:primaryType="nt:unstructured"

                                              sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"

                                              method="absolute"/>

                                          <items jcr:primaryType="nt:unstructured">

                                              <column

                                                  jcr:primaryType="nt:unstructured"

                                                  sling:resourceType="granite/ui/components/foundation/container">

                                                  <items jcr:primaryType="nt:unstructured">

                                                      <itemPath

                                                          jcr:primaryType="nt:unstructured"

                                                          sling:resourceType="granite/ui/components/coral/foundation/form/pathfield"

                                                          class="foundation-layout-util-maximized-alt long-label"

                                                          fieldLabel="Image"

                                                          name="./itemPath"

                                                          rootPath="/content/dam/latam-portal-agencias/img"/>

                                                      <itemText

                                                          jcr:primaryType="nt:unstructured"

                                                          sling:resourceType="granite/ui/components/foundation/form/textfield"

                                                          class="foundation-layout-util-maximized-alt long-label"

                                                          fieldLabel="Link"

                                                          name="./itemLink"/>

                                                  </items>

                                              </column>

                                          </items>

                                      </field>

                                  </item>

                              </items>

                          </column>

                      </items>

                  </carousel-component>

              </items>

          </content>

      </jcr:root>