Where can I find documentation about the EE filemanager?
I’d like to add a filebrowser anywhere on control panel (as fieldtype in Publish entry, but also on the Homepage or in an accessory) and be able to access it like this:
$.ee_filebrowser.add_trigger($('#myfile'),function(file, field){
// Some custom code here
alert(file);
}I’ve found the Filemanager library and the ee_filebrowser.js, but I’m not sure how to use them or if I’m missing something.
Thanks in advance.
There’s actually very little documentation on the filebrowser, unfortunately. I’ve messed around with it a little, but without much success.
It seems like there’s no way to get it to work on any page other than the Publish entry form, as it has a lot of external dependencies. For a reference in using it on the Publish form, take a look at how it was done on these two addons:
http://devot-ee.com/add-ons/catshit/ http://devot-ee.com/add-ons/category-image-manager/
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.