Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
farms [2015/02/07 08:55] tower [Version] |
farms [2016/01/16 15:13] (current) tower [Instructions] |
||
---|---|---|---|
Line 7: | Line 7: | ||
This is based on the ''.htaccess'' method of creating dokuwiki farms. | This is based on the ''.htaccess'' method of creating dokuwiki farms. | ||
===== Instructions ===== | ===== Instructions ===== | ||
- | You must create a media directory which your animal will access instead of the default ''ckgedit/fckeditor/userfiles'' directory, which gives ckgedit access to data/media. Every animal requires its own directory to access its media files. Like ''userfiles'' these directories will be located in ''ckgedit/fckeditor''. | ||
- | So if you have animals cat and dog, then you will have: | ||
- | fckeditor | + | You must create a media directory which your animal will access instead of the default ''ckgedit/fckeditor/userfiles'' directory, which gives ckgedit access to data/media. Every animal requires its own directory to access its media files. Like ''userfiles'' these directories will be located in ''ckgedit/fckeditor''. So if you have animals cat and dog, then you will have: |
- | cat | + | <code> |
- | dog | + | fckeditor |
- | userfiles | + | cat |
+ | dog | ||
+ | userfiles | ||
+ | </code> | ||
- | In each of these new directories you must create links to their actual media directories. You need at least three links named as follows: | + | In each of these new directories you must create links to their actual media directories. You need at least three links named as follows: |
- | media | + | |
- | image | + | <code> |
- | file | + | media |
- | | + | image |
- | They must all point to the data/media directory created for the animal. | + | file |
+ | </code> | ||
+ | |||
+ | They must all point to the data/media directory created for the animal. In addition you should copy blink.jpg and the relevant htaccess file from the fckeditor/userfiles directory into your new directory. | ||
The final step is to create a new ''animal'' configuration item in the local.php of each animal. For instance, in cat/conf/local.php: | The final step is to create a new ''animal'' configuration item in the local.php of each animal. For instance, in cat/conf/local.php: | ||
+ | <code> | ||
+ | $conf['animal'] ='cat'; | ||
+ | </code> | ||
- | $conf['animal'] ='cat'; | ||
- | | ||
===== Issues ===== | ===== Issues ===== | ||
So far, only one issue has arisen, the text names for internal media files. If for instance you have a pdf file named ''instructions.pdf'' in the the ''docs'' folder, the display name which appears on the screen will be the complete path to ''/farmer/lib/plugins/ckgedit/fckeditor/animal/file/docs/instructions.pdf''. This will appear after you click OK in the link dialog. You may revise this to whatever you want; the underlying link will still be correct. | So far, only one issue has arisen, the text names for internal media files. If for instance you have a pdf file named ''instructions.pdf'' in the the ''docs'' folder, the display name which appears on the screen will be the complete path to ''/farmer/lib/plugins/ckgedit/fckeditor/animal/file/docs/instructions.pdf''. This will appear after you click OK in the link dialog. You may revise this to whatever you want; the underlying link will still be correct. | ||