To enable the file browser I have to adjust $Config['UserFilesAbsolutePath']. I installed drupal as multisite and have different filepaths.

Would be fine to have this in the fckeditor-settings. Just like the path to an own css-file (which is a very fine feature :-)

Comments

frank.dev’s picture

+1
and also for the variable $Config['UserFilesPath'], which is also different in my multisite-installation.
Or only one configurable variable for $Config['UserFilesPath'] and $Config['UserFilesAbsolutePath'] = $_SERVER["DOCUMENT_ROOT"]. $Config['UserFilesPath']

For my administration of multisi-installation signifies a lot of expenditures:

switch($_SERVER["HTTP_HOST"]) {
  case 'www.installation-a.de':
	$Config['UserFilesPath'] = '/files/installation-a/' ;
    $Config['UserFilesAbsolutePath'] = $_SERVER["DOCUMENT_ROOT"]. "/files/installation-a/";
  break;
  case 'www.installation-b.de':
 	$Config['UserFilesPath'] = '/files/installation-b/' ;
    $Config['UserFilesAbsolutePath'] = $_SERVER["DOCUMENT_ROOT"]. "/files/installation-b/";
  break;
  case 'www.installation-c.de':
  	$Config['UserFilesPath'] = '/files/installation-c/' ;
    $Config['UserFilesAbsolutePath'] = $_SERVER["DOCUMENT_ROOT"]. "/files/installation-c/";
  break;
...
}

Many many manuall work - What was not necessary before version 2.x of the fckeditor!

olum’s picture

Meanwhile you can use the modul imce. Works fine for me and my multisite.

wwalc’s picture

Hi,

I'm creating a TODO list with all new features that could be added to FCKeditor module.
I will probably create a global FCKeditor profile that will hold settings that are the same for each profile (to reduce the overall time required to set up FCKeditor module by administrators, like for example adjusting include/exclude fields etc.).

The question is:
Do you think that the UserFilesPath and UserFilesAbsolutePath may differ among different FCKeditor profiles?
Do you think that the ability to set it globally would be enough?
What macros would you like to have there?

wkolatac’s picture

Category: feature » support

Hi -
I have the same issue (I think). In the previous version, when I commented out the UserFilesPath and UserFilesAbsolutePath lines, the file upload/browser functionality used the file system path value from Site Configuration->File System (file_directory_path attribute from the variable table).

This doesn't work in the current version. When I comment out those lines I get a an error message:
Error creating folder "redirect: somefilepath/index.php" (Can't create redirect: folder)

I'd really like to set the value via the Drupal admin config and not have to put the file paths in the config.php.

A global implementation (like the previous version) would work for me.

Thanks!

FreeFox’s picture

+1 Please can you fix this as soon as possible, please.

wwalc’s picture

Status: Active » Fixed

Try the latest 5.x-2.1-beta. It has not been fully tested, but this feature has been added.
If you find any bugs, please submit an issue.

Petra’s picture

I tested 5.x-2.x-dev and it works fine.
Thanks for the feature :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

wkolatac’s picture

i apologize if this is in the wong place (i.e. a closed request) but I want to make sure I understand this implementation. I have been away on another assignment so it has taken a bit to refresh my memory as to where I left off ...
I have installed the lastest version, 5.x-2.1 with FCKEditor 2.5.1.

Using the default file browser/upload capability, I want the uploaded files to be stored in sites/default/files. I have to make the following changes:
- modify the config.php file to include the filemanager.config.php file
- enable the cookie.domain variable in the settings.php file
- In Drupal, Administer › Site configurationFile system -> File System Path, set the file system path to sites/default/path
- In Drupal, Administer › Site configurationFile system -> Edit FCKeditor profile, under the File Browser settings, set the Path to uploaded files: b%f/ and Absolute path to uploaded files: %d%b%f/.

My first few tests seem to work. But I have to support many Drupal sites and it would be easier for my deployment process if I didn't have to set the domain cookie variable. Is there any way to set the path values in Drupal admin w/o having the cookie domain variable set. In my environmen, the cookie domain may be different from site to site and it would be easier if I had a standard way to enable the built-in functionality, rather than having to provide unique values in the settings.php

Thanks for your help!

wkolatac’s picture

Version: 5.x-2.0-beta » 5.x-2.1