Image last selected path | Community
Skip to main content
yuriiv54804449
New Participant
May 1, 2016
Solved

Image last selected path

  • May 1, 2016
  • 1 reply
  • 683 views

Is it achievable for image component to have last selected path as the default path to select from.

Workflow using AEM 5.6.1:

  1. Add image component to the page
  2. Select an image from /dir1/dir2/dir3/image.png
  3. Add new image component to the page
  4. When you start selecting the image path it's starting from the directory /dir1/dir2/dir3

Thanks in advance!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Tuhin_Ghosh

Hi,

The answer is yes, this could be done. All you have do is add a defaultValue property to your field and initially it should be empty. Now you need to add a listener to the dialog which would capture the path and set it in the default value property of the dialog in the onsubmit event. This is one way of doing it.

Thanks

Tuhin

1 reply

Tuhin_Ghosh
Tuhin_GhoshAccepted solution
New Participant
May 1, 2016

Hi,

The answer is yes, this could be done. All you have do is add a defaultValue property to your field and initially it should be empty. Now you need to add a listener to the dialog which would capture the path and set it in the default value property of the dialog in the onsubmit event. This is one way of doing it.

Thanks

Tuhin