Page 1 of 1

FCKEditor -> filemanager -> change default folder?

Posted: Mon Jan 22, 2007 6:56 pm
by rtkd
hi,

i changed the path to my images directory in config.php. to: Bilder
adjusting the album module was no problem, but now in FCKEditor when i try to add an image
and click the 'browse server' tab it always shows the content of the non existant folder: images
which gets created new then.

i tried to track down the var where the path is set, but useless...
does anyone know where i can set the default path for the filemanager to start in?

thx, rtkd

Re: FCKEditor -> filemanager -> change default folder?

Posted: Tue Feb 27, 2007 6:17 pm
by icwebman
there is a bug in FCKEditor in 2 config files where it does not include the CMSMS config.php file

I had to make the following change in order for it to read the folder / path settings from the CMSMS config.php

modules\FCKeditorX\FCKeditor\editor\filemanager\browser\default\connectors\php\config.php
and
modules\FCKeditorX\FCKeditor\editor\filemanager\upload\php\config.php

about line 20 above global $Config; there is a line to require the CMSMS config.php but the path is wrong
you can either hardcode it to the correct path of your installation or use:
require('../../../../../../../../../config.php');

Helped resolve the issue with my installation.

Also for further information:
Bug Report: http://dev.cmsmadesimple.org/tracker/in ... 1&atid=121
Fixed in Version 1.0.3