Welcome Guest, Not a member yet? Register   Sign In
Pass variable to tinymce config.php file
#1

[eluser]nearo[/eluser]
I can easily pass a variable to the inline tinymce.init configuration, but I am not aware of and can not find a configuration option for the file path.

The actual file path variable is in the plugin's config.php file as $mcFileManagerConfig['filesystem.path'] and $mcFileManagerConfig['filesystem.rootpath']

How can I pass my variable or access session information in the filemanager/config.php file?


Thank you for your insights!
#2

[eluser]nearo[/eluser]
Is there a base codeigniter file that I can include in this config file to give me access to session information?
#3

[eluser]danmontgomery[/eluser]
Are you talking about MCFileManager?

Have you read through these:

http://wiki.moxiecode.com/index.php/MCFi...m.rootpath
http://wiki.moxiecode.com/index.php/MCFi...ystem.path

You can include ./application/config/config.php to get access to config['base_url']... But you can only pass session information if you're using native php sessions, not CI's sessions. You can use something like http://codeigniter.com/wiki/Native_session/ to make that switch.

You might have better luck using TinyMCE's support forum.
#4

[eluser]nearo[/eluser]
Thank you so much for taking the time to reply. I have gone over all the moxiecode files, but thank you for the links.

The native sessions, by itself, looks like something worth implementing, but I fear that so late in the development stage with all of my references to db sessions that it might be a bigger undertaking than simply putting a small hack in the filemanager.

I will investigate Native Sessions more, possibly there is an option to map the db_sessions call.

Thank you again.




Theme © iAndrew 2016 - Forum software by © MyBB