How to use Asset Selector in dialog | AEM 6.4?

Avatar

Avatar
Boost 5
Level 2
Ankit_Kumar_Vis
Level 2

Likes

5 likes

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
View profile

Avatar
Boost 5
Level 2
Ankit_Kumar_Vis
Level 2

Likes

5 likes

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
View profile
Ankit_Kumar_Vis
Level 2

20-08-2018

As describe on Adobe's page at Here AEM provides an OOTB asset selector which includes image previews which is not present in  standard pathbrowser.

In the page above it also says that you can use the picker from a granite dialog:

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
  
jcr:primaryType="nt:unstructured"
  
sling:resourceType="granite/ui/components/coral/foundation/form/pathfield"
  
name="./fileReference"
  
pickerSrc="/aem/assetpicker.html?dialog=true"
  
rootPath="/content/dam/"/>

The pathfield above does not seem to use the alternative picker specified with pickerSrcand not working at all.

Also tried adding the extra URL parameters as specified in the PathfieldDoc .

<pathfield
  
jcr:primaryType="nt:unstructured"
  
sling:resourceType="granite/ui/components/coral/foundation/form/pathfield"
  
name="./fileReference"
  
pickerSrc="/mnt/overlay/granite/ui/content/coral/foundation/form/pathfield/picker.html?_charset_=utf-8&root=/content/dam"
  
rootPath="/content/dam/"/>

But that made no change and work like normal (No image preview).

Any pointers as to what is wrong in the above dialogs definition?

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,410 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

20-08-2018

I was able to verify this does not work as documented. I recommend opening a support ticket so this can be fixed.

Avatar

Avatar
Boost 5
Level 2
Ankit_Kumar_Vis
Level 2

Likes

5 likes

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
View profile

Avatar
Boost 5
Level 2
Ankit_Kumar_Vis
Level 2

Likes

5 likes

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
View profile
Ankit_Kumar_Vis
Level 2

20-08-2018

Thank you smacdonald2008​ for your reply.

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

587 likes

Total Posts

735 posts

Correct reply

246 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

587 likes

Total Posts

735 posts

Correct reply

246 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

17-09-2018

Hi Ankit,

Did you get a chance to get any progress on this query. If yes, request you to share an update.

Thanks in advance.

Avatar

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

587 likes

Total Posts

735 posts

Correct reply

246 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile

Avatar
Boost 500
MVP
Vijayalakshmi_S
MVP

Likes

587 likes

Total Posts

735 posts

Correct reply

246 solutions
Top badges earned
Boost 500
Give Back 50
Give Back 5
Ignite 10
Ignite 5
View profile
Vijayalakshmi_S
MVP

20-09-2018

HI Scott,

Could you please help with the update on this. Was there any open ticket raised for this already and if we get to have reply from the team.

Avatar

Avatar
Boost 5
Level 2
Ankit_Kumar_Vis
Level 2

Likes

5 likes

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
View profile

Avatar
Boost 5
Level 2
Ankit_Kumar_Vis
Level 2

Likes

5 likes

Total Posts

8 posts

Correct reply

0 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
View profile
Ankit_Kumar_Vis
Level 2

23-09-2018

Hi vijis31358935​,

I did not get any success on this yet.