I am trying to link to existing file on the drupal installation. I have added IMCE next to the URL field. I could select the file with imce /sites/default/files/myfile.jpg However, link complains that it is not a valid url so I have to trim / and make it like sites/default/files/myfile.jpg then it works. My PHP skills re very bad I added IMCE by using static name of the field and it fails if I change the name of the field. Could you help me to add IMCE to link and help me to remove / character problem. Thanks
Comments
Comment #1
quicksketchThis queue is for link.module requests, not for making links anywhere on your Drupal site. Try asking your question in the IMCE queue or in the forums.
Comment #2
mustafadur commentedHere is my working but not elegant solution. I have a link field named PDF
go to end of function link_widget and add
find
and add
add ltrim to remove / added by imce
and finally test1.js
It is working but it is a mess. I wish you could do cleanup the code. Thanks.