These instruction apply only to versions of DokuWikiFCK which are using FCKeditor 25, which are versions prior to October 08 09.
Note: This document does not apply to versions of DokuWikiFCK which use FCKeditor 2.6. Versions that come with 2.6 use the FCKeditor's image and link tools for uploads. See the the Install_README document, which is included in the fckeditor directory of the 2.6 package.
The DokuWiki media manager is used for uploading files and the FCKEditor media manager is used for inserting files in the FCK editor's editing space.
To implement inserting and uploading of images:
- replace the copy of DokuWiki's mediamanager.php in tpl/ with the one included in this package.
- create a userfiles directory in your document root directory. Inside userfiles, create a symbolic link that p
oints to the dokuwiki media directory:
userfiles image → data/media
$supported_media = 'jpeg,jpg,png,gif,bmp';Add a comma and the new file-type. For instance:
$supported_media = 'jpeg,jpg,png,gif,bmp,pdf';
This will enable uploading of pdf files. You will then be able to create links to these files using the link tool .
The FCKeditor also has a facility to upload files to the server from the link tool.
The default directory for these uploads is userfiles, which is not visible to DokuWikiFCK. Therefore, you have to create a link from data/media back up to userfiles. Your final configuration might, therefore, look like this:
userfiles image → data/media file → data/media data/media up → userfiles
Windows installations will have to create the equivalent of a unix symbolic link in the userfiles directory. The standard Windows link or short-cut will not work. There is a utility called Winbolic Link which will do this for you:
Winbolic Link creates two kinds of Windows links, a Shell Link and an NTFS Junction. You must create a junction. Be sure to read the warning about junctions in the Winbolic help. See Sebastian Maruca's video on how to install the symbolic link.
If you are running more than one dokuwiki on your server,each using DokuWikiFCK, and if each has its own media directory, you will have to create a 'userfiles' directory for each installation, and each 'userfiles' will need an 'image' link to its own media directory. The way to do this is as follows:
- for each installation create a 'userfiles' directory
- in each 'userfiles' create a link to its media directory
- go to fckg/fckeditor/editor/filemanager/connectors/php.config.php and in config.php make the following edits:
C HANGE: Path to user files relative to the document root:
$Config['UserFilesPath'] = '/userfiles/'; < br /> Note: UserFilesPath does not include the document root directory itself!
Change: $Config['Use rFilesAbsolutePath'] = ””
To: $Config['UserFilesAbsolutePath'] = $UserFilesRealPath;
Your absolute path is: /var/www/html/dw_1/userfiles
Your document root is: /html/
$UserFilesRealPath = '/var/www/html/dw_1/userfiles/';
$Config['UserFilesPath'] = '/dw_1/userfiles/';
$Config['UserFilesAbsolutePath'] = $UserFilesRealPath;
The rest follows the instructions for a single userfiles directory in 3 above.
If you are creating a wiki farm, using a system of symbolic links, each installation must have its own llib/exe d irectory from which to execute its scripts for this method to work.