Cette conversation a été verrouillée en raison de son inactivité. Veuillez créer une nouvelle publication.
Niveau 1
Niveau 2
Se connecter à la communauté
Connectez-vous pour voir tous les badges
Cette conversation a été verrouillée en raison de son inactivité. Veuillez créer une nouvelle publication.
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 .
Résolu ! Accéder à la solution.
Vues
Réponses
Nombre de J’aime
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"/>
Vues
Réponses
Nombre de J’aime
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
Vues
Réponses
Nombre de J’aime
Is it possible to set default value in pathbrowser ? i m trying to set in default value in pathbrowser filed
Vues
Réponses
Nombre de J’aime
Yes its possible to set a default value for the pathbrowser field. value property should work fine to set a default value.
Vues
Réponses
Nombre de J’aime
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"/>
Vues
Réponses
Nombre de J’aime
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"/>
Vues
Réponses
Nombre de J’aime
Checked with the dialog snippet you shared value property works fine for me.
Vues
Réponses
Nombre de J’aime
Vues
Réponses
Nombre de J’aime
I dont know whats happening with me still its not working for me
Vues
Réponses
Nombre de J’aime
"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
Vues
Réponses
Nombre de J’aime
Vues
Likes
Réponses
Vues
Likes
Réponses