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

I am trying to make drop an asset clickable

  • November 30, 2021
  • 2 replies
  • 814 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

B_Sravan
Community Advisor
B_SravanCommunity AdvisorAccepted solution
Community Advisor
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.

arunpatidar
Community Advisor
Community Advisor
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