Highlighted

Search and display results from AEM DAM assets

Avatar

Avatar

dmp007

Avatar

dmp007

dmp007

21-04-2019

Hi Team,

Can we search (metadata key) and display the AEM DAM assets in customized UI (Templates,Components & Page)using asset manager API?  I was able to upload single image to DAM using asset manager API . Similarly I'm looking for an option to display the search results.

Thank in advance

DMP

Replies

Highlighted

Avatar

Avatar

Ravi_Pampana

MVP

Avatar

Ravi_Pampana

MVP

Ravi_Pampana
MVP

21-04-2019

Hi,

If I understand correctly, you want to display the images in a component/page which are displayed on asset finder ? If so you can use the below url and update the query term with custom value and make an ajax call and display the images as required

http://localhost:4502/bin/wcm/contentfinder/asset/view.html?_dc=1555905028910&query=we+retail+order%...

It is the same ajax call which will happen when we search images in asset finder

Hope this helps !

Highlighted

Avatar

Avatar

dmp007

Avatar

dmp007

dmp007

22-04-2019

Thanks @Ravi Pampana for your prompt response. Your link shows up the search results as we except. Can you also share the changes for jsp/HTL/API(sling servlet) and query term to help me to understand connecting all these dots?

Sorry for asking more detailed information. I'm very new to AEM. I just followed the below steps to upload the image using custom UI

- (https://helpx.adobe.com/experience-manager/using/uploading-files-aem1.html) . Similarly I need to update the jsp/HTL/API to view the results for the search criteria on the customized UI. And also we need to allow user to click any of the result image which would bring the image and metadata information on side by side.

Thanks again !!!

On Sunday, 21 April, 2019, 11:54:36 pm GMT-4, Ravi Pampana <forums_noreply@adobe.com> wrote:

Search and display results from AEM DAM assets

created by Ravi Pampana in Adobe Experience Manager - View the full discussion

Hi,

 

If I understand correctly, you want to display the images in a component/page which are displayed on asset finder ? If so you can use the below url and update the query term with custom value and make an ajax call and display the images as required

 

http://localhost:4502/bin/wcm/contentfinder/asset/view.html?_dc=1555905028910&query=weret ailorder%3A%22-jcr%3Acontent%…

 

It is the same ajax call which will happen when we search images in asset finder

 

Hope this helps !

If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/11039851#11039851 and clicking ‘Correct’ below the answer

Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:

Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/11039851#11039851

To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"

Start a new discussion in Adobe Experience Manager by email or at Adobe Community

For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

This email was sent by Adobe Community because you are a registered user.

You may unsubscribe instantly from Adobe Community, or adjust email frequency in your email preferences

Highlighted

Avatar

Avatar

Ravi_Pampana

MVP

Avatar

Ravi_Pampana

MVP

Ravi_Pampana
MVP

23-04-2019

Hi dmp007,

If you are developing custom component then you can make an ajax call with above given url which returns all the images matching search term.

Once you get the images paths, you can use below url to retrieve image meta data on clicking on the image

<host>:<port>/mnt/overlay/dam/gui/content/assets/metadataeditor.external.html?_charset_=utf-8&item=<image-path returned in first ajax call>

Ex: //<host>:<port>/mnt/overlay/dam/gui/content/assets/metadataeditor.external.html?_charset_=utf-8&item=/content/dam/we-retail/en/activities/hiking/hiking_5.jpg