Multified dropdown in page properties | Community
Skip to main content
Level 2
March 26, 2018

Multified dropdown in page properties

  • March 26, 2018
  • 3 replies
  • 5841 views

Hi All,

We are using dropdown as multifield in page properties. When the page properties are  opened and dropdown values are selected and saved, they are stored in jcr as String array but when the page properties are opened, the selected values are not rendered and shows multifield dropdown as never edited.

Single dropdowns works fine.

Help Appreciated !!

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

kautuk_sahni
Community Manager
Community Manager
March 26, 2018
Kautuk Sahni
Level 2
March 26, 2018

Could you please provide us with the dialog of your page?

kautuk_sahni
Community Manager
Community Manager
April 6, 2018

Package can be download from the article itself.

Kautuk Sahni
K_RichuAuthor
Level 2
March 26, 2018

Please find the part of the xml which renders multifield dropdown.

The same xml is used across component level and works fine. The configuration is stored node wise and renders correctly on opening the dialog but when used for page properties level, stores the configuration as string array and doesn't show anything on opening the dialog.

<fields

                                cq:showOnCreate="{Boolean}true"

                                jcr:primaryType="nt:unstructured"

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

                                eaem-nested=""

                                class="full-width"

                                fieldDescription="Click '+' to add a new field"

                                fieldLabel="Resource Categories">

                                <field

                                    jcr:primaryType="nt:unstructured"

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

                                    name="./items">

                                    <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">

                                                <categories

                                                    cq:showOnCreate="{Boolean}true"

                                                    jcr:primaryType="nt:unstructured"

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

                                                    fieldDescription="Select Resource Categories"

                                                    fieldLabel="Category"

                                                    name="./resourceCategory">

                                                    <datasource

                                                        jcr:primaryType="nt:unstructured"

                                                        sling:resourceType="abc/components/content/featuredContent/dataSource/FeaturedCategories"

                                                        addNone="{Boolean}true"/>

                                                </categories>

                                            </items>

                                        </column>

                                    </items>

                                </field>

                            </fields>

Level 2
March 26, 2018

I see you're using this eaem-nested property, probably from this link? Experiencing Adobe Experience Manager - Day CQ: AEM 62 - Touch UI Nested ( Multi-Multi ) Composite Multifield storing da… 

Please note that when trying to save this, you do need that specific javascript file available. I don't think that you have that one available when you edit the page properties, but I could be mistaken.

K_RichuAuthor
Level 2
March 27, 2018

Yes I can understand that, but that was not what I asked. I asked if you're editing the properties via the editor.html or via the sites.html UI


Though I go from editor.html or sites.html, it opens : /mnt/overlay/wcm/core/content/sites/properties.html?item=pagePath.