01.12.2012 Views

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

perl KupuEditorAddOn_installer.pl install<br />

If <strong>the</strong> Perl interpreter is not located in <strong>the</strong> /usr/bin, you will need to<br />

adapt <strong>the</strong> shebang lines of <strong>the</strong> scripts accordingly. As indicated regarding<br />

<strong>the</strong> installation of TWiki, locate <strong>the</strong> path with which<br />

perl. If you should need to change <strong>the</strong> line, <strong>the</strong> easiest way is to<br />

use an editor (e.g. Nano). The files needing editing are:<br />

bin/kupu_attachments<br />

bin/kupu_html2TWiki<br />

bin/kupu_TWiki2html<br />

bin/kupuedit<br />

The shebang line is always <strong>the</strong> first line. Just change <strong>the</strong> path<br />

/usr/bin/perl to <strong>the</strong> corresponding path of your system. Now you<br />

should open <strong>the</strong> editor to test it. You can do so by opening any page<br />

in TWiki and replacing <strong>the</strong> URL “view” with “kupuedit.” You<br />

should now be able to edit <strong>the</strong> file in a graphic interface.<br />

If you have activated au<strong>the</strong>ntication, you must also include <strong>the</strong><br />

four scripts cited above in <strong>the</strong> .htaccess file:<br />

<br />

require valid-user<br />

<br />

<br />

require valid-user<br />

<br />

<br />

require valid-user<br />

<br />

<br />

require valid-user<br />

<br />

Finally, it is necessary to make Kupu available to all users by generating<br />

a link to <strong>the</strong> editor:<br />

↵<br />

Kupu Edit<br />

You can ei<strong>the</strong>r integrate this line in WebLeftBar or, more elegantly,<br />

include it directly in <strong>the</strong> View template. For <strong>the</strong> Pattern skin, you<br />

would make <strong>the</strong> entry at <strong>the</strong> spot indicated below:<br />

18.4 Writing Texts with <strong>the</strong> Editor Plugin<br />

�<br />

�<br />

�<br />

273

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!