You need to login to send post. No account yet? Create one:
Create account
FCK Editor file browser in Drupal multisite
Mon, 01/18/2010 - 17:36
How to use FCK Editor built-in filebrowser without copying whole FCK editor into all sites folders? I know, it is possible to make symlinks on all files and keep there only file 'modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php' - but this is non very nice looking...



















In 'modules/fckeditor/fckeditor/editor/filemanager/connectors/php/config.php' after initial '<?php' write:
$MySiteAddress = $_SERVER['REQUEST_URI'];
$PartsOfAddress = explode("/", $MySiteAddress);
and under '// Path to user files relative to the document root.' use:
$Config['UserFilesPath'] = '/sites/' . $PartsOfAddress[2] . '/files/' ;
After this changes copy FCK Editor module into '/sites/default/modules' (NOT INTO '/sites/all/modules') and made symlinks on this FCK Editor module folder in all module folders you need.