FCK/CK and the filecenter

Normally the FCK/CK online editors rely upon their own file system, which you can set up below /pictures/upload/. There you can make your own folder system and save your uploaded files. The editor will then be able to make use of them, offer them for download or for being displayed.

The CMS on the other hand has its own file system accompanied by the possibility to recalculate picture by a given size or means for activating theLightBox/SlimBox feature. This isn't possible when using the picture embedding feature of FCK/CK.

Files from the CMS file center can be placed directly within the text box of the FCK-editor. There is no need to make use of any CMS content part (CP) for single files. Just by clicking the button “search server” the “filebrowser” of the CMS is called, where you can select the appropriate files.

These files are saved automatically into /filearchive/ by the CMS, secured from direct access from outside for security and copyright reasons. While inserting a file into a text the file download.php is activated which then in turn will make it avalable for being displayed or for offering it for download. (pictures in turn will make use of the fileimage_resized.php).

<note>Do not run in CK-Editor!
At this time the developers have provided no interface.
Starting from the version 1.4.7 r416 also in the CK-editor available.</note>

Condition:

  • CMS > V1.3.9 (+ CK-Editor > V1.4.7 r415)
  • config/phpwcms/conf.inc.php:
    $phpwcms['FCK_FileBrowser'] = 1; // enable|disable phpwcms Filebrowser in FCKeditor instead of built-in FCK file bowser support


Example:

Mount a file to download

  1. Expression for the create file
  2. Expression mark
  3. [Button] Insert/edit link
  4. [Button] Browse server
  5. Select file
  6. protocol [<change>]
  7. [OK] ready

Now the file download.php will be autom. used for download the selected file.


Insert image

  1. Set image position in the text with the mouse and one click
  2. [Button] Image insert/edit
  3. [Button] Browse server
  4. Select image
  5. Insert alt-text and take more settings (weidth/height, border, orientation ….)
  6. [OK] ready

Now the file image_resized.php will be autom. used to show the selected image.

Have a look too: WYSIWYG (F/CK) image resize


The folder /filearchive/ can stay protected.

english/other-enhancements/fck-filecenter.txt · Last modified: 2018/06/03 18:09 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0