Log in or register to post comments
Last post
change user directory dinamicaly
Hello, I'm usign CKEditor and I would like to change files/images/flash directory dinamicaly. When I'm in another section of the site, directories are classified by section of the site. How can I change these directory ? how can I modify configs ?

thank you.
Re: change user directory dinamicaly
Hello,

The best way to set users' directories dynamically is to use session variables. Instead of assigning hardcoded paths in config file, assing a session variable.
This session variable may be set each time user logs in, changed when user enters other section of the site etc.

Wiktor Walc
CTO
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+

Re: change user directory dinamicaly
I searched but I didn't find the trick to change users' directories.
I tried these classes :
Dim _FileBrowser As CKFinder.FileBrowser = New CKFinder.FileBrowser()
Dim ConfigFile As CKFinder.Settings.ConfigFile = New CKFinder.Settings.ConfigFile()

but neither have the property or method to change users' directories.
When I change basepath, CKFinder doesn't work after that. I don't want to copy CKFinder in each directory.

my directories are like that:

upload/newsletter/images
upload/newsletter/files
upload/events/images
upload/events/files
upload/contest/images
upload/contest/files

I don't understand how to change user's directories without change the basepath.
thank you.