sottwell Reply #1, 5 months, 1 week ago
The beta 3 is working beautifully now.
There's still a few more things I'd like to see, such as a nice interface for configuring it and for configuring the accompanying elFinder browser. Since the browser by default starts at the web root, that makes for a very interesting browser when the site is in a subdirectory! Ideally, I suppose the controller.php file should be able to use a Media Resource to control its file access.
When I used elFinder as a stand-alone browser for a form, I put the controller.php as a snippet in a resource with no template, and used the resource URL as the URL in the initialization javascript.
There's still a few more things I'd like to see, such as a nice interface for configuring it and for configuring the accompanying elFinder browser. Since the browser by default starts at the web root, that makes for a very interesting browser when the site is in a subdirectory! Ideally, I suppose the controller.php file should be able to use a Media Resource to control its file access.
When I used elFinder as a stand-alone browser for a form, I put the controller.php as a snippet in a resource with no template, and used the resource URL as the URL in the initialization javascript.
$().ready(function() {
var elf = $('#elfinder').elfinder({
url : 'elfconnector.html', // connector URL (REQUIRED)
getFileCallback : function(file) {
$( "#image", window.opener.document).val(file.url);
window.close();
},
resizable: false,
onlyMimes: ["image"]
}).elfinder('instance');
});