How to disable image upload feature on clicking smartimage?
set allowUpload = false
See http://dev.day.com/docs/en/cq/current/widgets-api/index.html?class=CQ. html5.form.SmartImage
Hi Justin,
I created a custom component that uses smartimage in its dialog. When I open the dialog and click on the smartimage area, it allows to browse the images from local file system. I am supposed to diable this feature. so, I wrote a listener for loadcontent and beforerender events of smartimage and set allowUpload field to false inside it. But it did not work. smartimage is inheriting this feature from smartfile. I went through source code of smartimage and smartfile. Upload functionality is implemented inside private methods of smartfile. I do not know how private members got inherited and how to override.
Regards,
Sravan.
Message was edited by: sravankumarsindhe
North America
Europe, Middle East and Africa
Asia Pacific