As per document Asset Selector , http://localhost:4502/aem/assetpicker.html?dialog=true Use these parameters to open the asset selector as Granite Dialog. This option is only applicable when you launch the asset selector through Granite Path Field, and configure it as pickerSrc URL.
I tried the following code in the dialog XML:
pathfield above does not seems to use the alternative picker specified by the
pickerSrcand behaves like a standard
Also tried adding the extra URL parameters as specified in the pathfield docs but that made no change.
Please provide ur inputs how to configure assetpicker in dialog.
Solved! Go to Solution.
It does works if you'll be using below path for pickerSrc
The pickerSrc is not working with values "
/aem/assetpicker.html?dialog=true" anyone got the assetpicker ?
but still there is a bug, it will not allow selecting assets from assets selector.
you can log a daycare ticket.
Above solution is not working for me.
But it works with below solution : https://stackoverflow.com/questions/51366697/how-to-use-the-aem-asset-selector-in-a-coral3-dialog
One issue here is , let's say I have selected one image at path /content/dam/xyz/steps/image1.png
and now if I click on the pathfiled it will again take me to /content/dam/xyz instead of image path .
@arunpatidar could you please let us know where can i find the tutorial or any article regarding coral 3 granite framework which are helpfull for dialog customization. How did you learn.
@arunpatidar it is failing while assigning the value back to pathfiled :
var selectedItem = document.querySelector(SELECTORS.SELECTED_ITEM).getAttribute(SELECTORS.ITEM_ATTR);
document.querySelector(SELECTORS.PATHFIELD_SELECTOR).value = selectedItem;
value of document.querySelector(SELECTORS.PATHFIELD_SELECTOR) coming as null hence removed
You need to add this class in the dialog field
The fix is done in AEMaaCS.
You can learn about Granite and Coral from
I am using AEMaaCS and it is not working for me.
The value is getting added to pathfiled after selection but it is not persisited because. value of pathfiled is coming from coral-taglist > coral-tag > coral-tag-label .
and also as i tol earlier it works fine with pickersrc=
But I am not sure should I use this or ur one.
If other is working then you can use it
I am not sure if you are doing something wrong while using the other one because it works for me. I can see the values are saved and persisting and I can see when I open dialog again.