Cela se fait dans les 3 fichiers de configuration suivants :
Choix du langage serveur :
FCKEditor/fckconfig.js
Modifications à apporter:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php | py var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | php
Pour l'exploration:
fckeditor/editor/filemanager/browser/default/connectors/<votre langage serveur>/config.<votre langage serveur>
Modifications à apporter :
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 // SECURITY: You must explicitelly enable this "connector". (Set it to "true"). $Config['Enabled'] = true ; // Path to user files relative to the document root. //Dossier des fichiers utilisateur relatifs à la racine de votre serveur Web $Config['UserFilesPath'] = '/upload/' ; // Fill the following value it you prefer to specify the absolute path for the // user files directory. Usefull if you are using a virtual directory, symbolic // link or alias. Examples: 'C:\\MySite\\UserFiles\\' or '/root/mysite/UserFiles/'. // Attention: The above 'UserFilesPath' must point to the same directory. //Autre possibilité : donner le chemin selon le système du fichier de l'OS $Config['UserFilesAbsolutePath'] = 'c:\\wamp\\www\\upload\\' ;
Pour l'upload:
fckeditor/editor/filemanager/upload/<votre langage serveur>/config.<votre langage serveur>
Modifications à apporter :
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 // SECURITY: You must explicitelly enable this "uploader". $Config['Enabled'] = true ; // Path to uploaded files relative to the document root. $Config['UserFilesPath'] = '/upload/' ; // Fill the following value it you prefer to specify the absolute path for the // user files directory. Usefull if you are using a virtual directory, symbolic // link or alias. Examples: 'C:\\MySite\\UserFiles\\' or '/root/mysite/UserFiles/'. // Attention: The above 'UserFilesPath' must point to the same directory. $Config['UserFilesAbsolutePath'] = '' ;
PS : pourrait-on mettre ça en post-it?
Partager