Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

I am trying to make drop an asset clickable

Avatar

Level 5

Ronnie09_0-1638267709630.png

As shown in above image I am trying to make the highlighted one clickable how to achieve this functionality.

1 Accepted Solution

Avatar

Correct answer by
Level 5

By clickable you mean, make the placeholder icon to be clickable or you need options like browse,clear and pick?

For the former one, I am afraid that is not feasible with the existing resourceType - you might need to overwrite the css for it and write some necessary actions for the post click events.

 

For the latter part, make sure that you are using all necessary resourceType properties. 

if you would like to see the all available properties of the file upload resourceType, check here /libs/cq/gui/components/authoring/dialog/fileupload/render.jsp.

 

Note: Please do not edit or delete any files under libs.

View solution in original post

0 Replies

Avatar

Correct answer by
Level 5

By clickable you mean, make the placeholder icon to be clickable or you need options like browse,clear and pick?

For the former one, I am afraid that is not feasible with the existing resourceType - you might need to overwrite the css for it and write some necessary actions for the post click events.

 

For the latter part, make sure that you are using all necessary resourceType properties. 

if you would like to see the all available properties of the file upload resourceType, check here /libs/cq/gui/components/authoring/dialog/fileupload/render.jsp.

 

Note: Please do not edit or delete any files under libs.

Avatar

Community Advisor

Hi,

what is the functioanlity behind click?

Currently this buton is clickable to upload asset from local file system. To enable this you need to add 

allowUpload (Boolean) = true

 

/**
* Indicates whether upload from local file system is allowed.
*/
- allowUpload (Boolean) = 'true'