Click Open Rich Editor - displays FCKEditor in a popup
Click Insert/Edit Image displays Image Properties in a popup
Click Browse Server and Resources Browser displays in a popup

Resource type is image

Files upload to /files/image/

How would I browse /files/ instead of /files/image/? I'd like access to images stored with the create image content type and other tools.

Path to uploaded files:
Current path: /files/

Absolute path to uploaded files:
Current path: /home/lsnet/public_html/ls.net/files/

lsnet@helen:~/public_html/ls.net/sites/all/modules/fckeditor/fckeditor/editor/filemanager/connectors/php$ diff config.php.20080312 config.php
24a25
>
30c31
< $Config['Enabled'] = false ;
---
> $Config['Enabled'] = true ;
34c35
< $Config['UserFilesPath'] = '/userfiles/' ;
---
> $Config['UserFilesPath'] = '/files/' ;
40c41,42
< $Config['UserFilesAbsolutePath'] = '' ;
---
> $Config['UserFilesAbsolutePath'] = '/home/lsnet/public_html/ls.net/files/' ;
> require_once "../../../../../filemanager.config.php";
lsnet@helen:~/public_html/ls.net/sites/all/modules/fckeditor/fckeditor/editor/filemanager/connectors/php$

Comments

tarvid’s picture

Title: Resource Browser does no browse intended directory » Resource Browser does not browse intended directory
wwalc’s picture

Take a look at modules\fckeditor\fckeditor\editor\filemanager\connectors\php\config.php.
Below the
require_once "../../../../../filemanager.config.php";
somewhere at the bottom, path to 4 resource types (file, image, flash, media) is defined.

For example path to Images:

$Config['FileTypesPath']['Image']		= $Config['UserFilesPath'] . 'image/' ;
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'].'image/' ;

To be able to browse the whole "files" directory when you click on the "Image" button (instead of "images" subdirectory), change it to:

$Config['FileTypesPath']['Image']		= $Config['UserFilesPath'] ;
$Config['FileTypesAbsolutePath']['Image']= ($Config['UserFilesAbsolutePath'] == '') ? '' : $Config['UserFilesAbsolutePath'] ;

(just remove any references to "image/" subdirectory).

Jorrit’s picture

Status: Active » Closed (fixed)