Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

having differents configurations #255

Closed
rafmix opened this issue May 8, 2014 · 7 comments
Closed

having differents configurations #255

rafmix opened this issue May 8, 2014 · 7 comments
Assignees

Comments

@rafmix
Copy link

rafmix commented May 8, 2014

Hi,
first, thanks for your work.

I use the filemenager with Ckeditor, loade by jquery, and I need to make different configuration, not only for the folder. For exemple, in one case, user can upload image, in another case, only .xls.

I tried different solution, the only one that I founded is to duplicate your application in order to change the filemanager.config.js for each case. Is it a better solution?
Thanks in advance for your answer.
Raf

@simogeo
Copy link
Owner

simogeo commented May 11, 2014

For now, it is probably the only way to do it, indeed (without hacking the FM).

I will think about a more flexible option and let you know.

@rafmix
Copy link
Author

rafmix commented May 13, 2014

Thanks for your answer.
PS. Another point, is there a reason to having CodeMiror in the productive set?

@simogeo
Copy link
Owner

simogeo commented May 13, 2014

CodeMirror will allow online edition. If you don't need it. Just disable the option.

You will notice that, by default the FM does not load the full code highlighter but only a light version of CodeMirror.

@rafmix
Copy link
Author

rafmix commented May 13, 2014

Thanks for your answer. It was just because codemirror is 3Mb and I have 5 filemanager folders.... and still codemirror

@simogeo
Copy link
Owner

simogeo commented May 13, 2014

Set enabled to false. CodeMirror will not be loaded (https://github.com/simogeo/Filemanager/blob/master/scripts/filemanager.config.js.default#L109)

@kaptk2
Copy link

kaptk2 commented Oct 26, 2015

What about being able to pass in the config file similar to how exclusive folders are handled? Something like index.html?config=configFileName.js would be nice.

@simogeo
Copy link
Owner

simogeo commented Nov 21, 2015

Should be now possible. See last commit and following doc : https://github.com/simogeo/Filemanager/wiki/Passing-parameters-to-the-FM#passing-a-config-file

@simogeo simogeo closed this as completed Nov 21, 2015
@simogeo simogeo removed the WIP label Nov 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants