I am trying to make drop an asset clickable | Community
Skip to main content
New Participant
November 30, 2021
Solved

I am trying to make drop an asset clickable

  • November 30, 2021
  • 2 replies
  • 811 views

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

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 B_Sravan

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.

2 replies

arunpatidar
New Participant
December 1, 2021

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'

Arun Patidar
B_Sravan
B_SravanAccepted solution
New Participant
November 30, 2021

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.