Opened 18 years ago
Closed 18 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 18 years ago by
Keywords: | folder names removed |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
This feature is covered in the patch proposed in #306. Closing as dup