To set Default value in dilaog property

rajs73651622 20-08-2018

how to set default value in aem6.4 dialog property . I have used "value" property but its not working .Is there anything else i need to add for default value .

Accepted Solutions (1)

Accepted Solutions (1)

k_ra 20-08-2018

Verified this in 6.4 it works fine for me

<image

    jcr:primaryType="nt:unstructured"

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

    fieldDescription="Image"

    fieldLabel="Image Path [Desktop]"

    name="./image"

    rootPath="/content/dam"

    value="/content/dam/we-retail"/>

Answers (8)

Answers (8)

smacdonald2008 20-08-2018

"Is it possible to set default value in pathbrowser:

You can set rootPath - that will act as the starting point when the user clicks the button in the component dialog. See the section titled ""Add the pathbrowser field to the dialog:

Building Experience Manager Components using Granite/Coral Resource Types

rajs73651622 20-08-2018

              Here is my dialog.xml         <path

                                        jcr:primaryType="nt:unstructured"

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

                                        fieldLabel="Demo Path"

                                        name="./path"

                                        value="/content/default.jpg"/>

Arun_Patidar
MVP
20-08-2018

Hi,

value should work, can you share your dialog xml? or try to add existing list component in we-retail site and check existing list core component's childDepth default value should appears

/apps/core/wcm/components/list/v1/list/cq:dialog/content/items/tabs/items/listSettings/items/column/items/setChildren/items/well/items/childDepth