Hi all,
Sorry if this question has already been answered. I spent quite some time looking through the forums but did not find anything about this.
I was tasked to implement a custom file browser within the image dialog. It worked really well as I built a custom browser that showed only images, the callback was smooth and the client is happy. However, the next thing they asked for was a different file browser from the link directory, one that shows everything (images and other file types) to create links.
I wasn't able to successfully get a handle on which button was being pressed due to the naming convention. Even if I did, I'm not sure I want to change the onclick event anyway to use different locations, would I? I'd like to be able to tell which button was clicked, because my code could then decide which files to grab from our VFS (thankfully, the browsers are visually the same)..
Thanks in advance,
-Brett
Just in case anyone was also
Just in case anyone was also looking for this - we hooked into the link browser through filebrowserBrowseUrl, and the image browse server through filebrowserImageBrowseUrl. It allowed me to pass in the same route with a querystring parameter to say whether or not it was files or images and it worked great.