Opened 12 years ago

Closed 12 years ago

#412 closed New Feature (duplicate)

Custom names for folders when UseFileType is activated (php)

Reported by: iznogud Owned by:
Priority: Normal Milestone:
Component: File Browser Version: FCKeditor 2.4.2
Keywords: Cc:

Description

In some installations may be necessary to use other names than File, Image, Flash or Media for the default folders. For example, for other languages, etc. What I did to give a solution is to define the following in config.php (php connector folder):

$Config['DirName']['File'] = "file"; // custom names for folders
$Config['DirName']['Image'] = "image";
$Config['DirName']['Flash'] = "flash";
$Config['DirName']['Media'] = "media";

In io.php, I added some lines to GetUrlFromPath and ServerMapFolder functions. In both functions add:

global $Config ;

and change

strtolower( $resourceType )

for

$Config['DirName'][$resourceType]

It works fine. Any other suggestions? Thanks.

Change History (1)

comment:1 Changed 12 years ago by Alfonso Martínez de Lizarrondo

Keywords: folder names removed
Resolution: duplicate
Status: newclosed

This feature is covered in the patch proposed in #306. Closing as dup

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy