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

Avatar

Avatar

elizabethp60981

Avatar

elizabethp60981

elizabethp60981

16-05-2018

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>

View Entire Topic

Avatar

Avatar

elizabethp60981

Avatar

elizabethp60981

elizabethp60981

16-05-2018

Hi,

thank you very much for your help.

The problem was that I was trying to use granite/ui/components/coral/foundation inside a structure that was using the

granite/ui/components/foundation

Thank you once more!