I am stumped and have been for too long.
1. mysite/ckfinder/ - the path to ckfinder
2. mysite/sites/images/ - the path to my images
ckfinder and my image directory (userfiles) are at the same level.
Do the images have to be located in the subdirectory of ckfinder? If not, how in the world do I map this with baseurl and basedir? I have tried every combination imaginable - except the right one.
Your help is greatly appreciated.
1. mysite/ckfinder/ - the path to ckfinder
2. mysite/sites/images/ - the path to my images
ckfinder and my image directory (userfiles) are at the same level.
Do the images have to be located in the subdirectory of ckfinder? If not, how in the world do I map this with baseurl and basedir? I have tried every combination imaginable - except the right one.
Your help is greatly appreciated.
Re: relative path to images
I need some more details to give you correct settings (e.g. absolute paths to mentioned directories).
Let's say your website is located under /www/mysite (this is an absolute path to this folder, in other words example.com points to /www/mysite), then:
baseUrl = /sites/images/
(path relative to document root)
baseDir = /www/mysite/sites/images/
(absolute server path to the directory above)
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: relative path to images
config.baseUrl = "http://www.mysite.com/sites/images/userfiles/"
config.baseDir = "C:/Inetpub/wwwroot/mysite/sites/images/";
This is where ckfinder is located:
C:/Inetpub/wwwroot/mysite/ckfinder/
This is where my site images are located:
C:/Inetpub/wwwroot/mysite/sites/images/
This is what worked:
config.baseUrl = "/sites/images/";
config.baseDir = "/inetpub/wwwroot/mysite/sites/images/";
Re: relative path to images
For those of you using ColdFusion, I wanted to document how I got session variables working for different image directories (folders).
application.cfm (located in the same directory where you are using ckfinder)
config.cfm:
Note that I do not need cfoutput or # on this page inside the script.
ckfinder/application.cfm and application.cfc
and
ckfinder/core/connector/cfm/application.cfm and application.cfc:
Note that there are two sets of identical files (application.cfm and application.cfc) in different locations that both need to be updated.
Note that sessionmanagement and clientmanagement are set to "yes" rather than "true" for CF8.
That's it for session variables.
I hope this helps someone else using ColdFusion.