help! using file_manager plugin to browse different folders
|
25 posts
|
I need help. I’m trying to modify the file manager plugin so that I can manage files except on a different directory (not the /public dir). I played around with the naming of ome variables and change the dir setting inside the plugin, but when I test it in the backend…all I get is “page cannot be found” error. My goal is to make a public file repository which I can manage from within frog. So the /public folder will stay hidden from the public, but the /files folder will be viewable to the public both of which I can manage within the frog admin area. Help would be appreciated. |
|
108 posts
|
This may or may not save you some time… |
|
25 posts
|
I don’t need a WYSISWG editor (I don’t like them). All I want to do is to make a copy of the file_manager plugin and change the directory from /public to files. I tried this but it does not work out. Can someone tell me which lines to edit/rename so that it works? |
|
3 posts
|
Hi. Your approach to this is correct. But all the activated plug-ins index.php are loaded before rendering the page in the front-end and back-end. So, the name of variables or functions in the index.php of the plug-ins should not be same. Try renaming the constants FILES_DIR,BASE_FILES_DIR in the copy of your file_manager plug-in index.php. And don’t forget to change that in the FileManagerController.php. Do a simple find and replace. Also you need to change the the Plug-in id and their controller names. :) |