I dont think via configuration you can make upload path "fixed/hardcoded" because the smartwidget/html5smartimage both has written to build the "browse" feature in widget itself.
But you can disable the drag/drop behvior on your image tab via setting up property "allowFileReference" to false (boolean)
For more information plz refer
Let me know for more information.
thanks for your useful information, I really became stuck yesterday.
First I will try your tip and disable the drag&drop behaviour, after that I will have a look at the mentioned SmartImage information.
What I want to achieve is a component which let me upload, preset path - changeable only direct in the source code, an image. Two versions I have in mind, either you see a link to the image, or you see the image directly on the page.
Is it ok to contact you, if there would be some other questions?
Sure. If you have that kind of requirement then i would prefer to use uploaddialog/smartfile "xtype" (there other too just explore from here http://dev.day.com/docs/en/cq/current/developing/widgets/xtypes.html and if need more information related to any of xtype just search it here http://dev.day.com/docs/en/cq/current/widgets-api/index.html) in that way you can satisfy both requirement
1. Set fixed path to link using rootPath property of pathfiled (xtype)
2. You dont need to drag and drop
Let me know if more information required.
thanks for your prompt reply. I am sorry for my own late answer, however I
were bound to bed due to illness, the whole december.
Now I am back again, hope you are not to mad about my late answer, sorry
What I have done so far is I created my own component with a "cq:editConfig",
FileDownload.jsp, just the skeleton, and a dialog with my own xtype, an js-file.
In the before mentioned js-file, I define the pathfield.
Nevertheless nothing is happening after put the new component to my test-
page. What I would expect is to pop up the dialog with the pathfield.
What is the best way to access the pathfield-value and how could I store the
file as a link onto my testpage and in the repository?
I think these questions are very basic, however I do not know where to look
and what to do next.
Thanks in advance for any help.