Question
Hello,
I would be happy, when someone can help me with my problem.
I want to write a very little Plugin for TWiki, which can only write/save a file, when I click the save-button below the edit-window of a topic.
How and in which Plugin-Handle have I to write the following Perl-code?
open(FFILE,">../../../data/Main/OutFile.txt");
print FFILE "This is a test.\n";
close FFILE;
Thanks a lot!
Sven
Environment
--
SvenStrohschein - 02 Sep 2005
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
EmptyPlugin.pm is a template for a plugin; take a copy of it, save it as your new plugin, and edit as instructed in the file. The handler you want is the
beforeSaveHandler.
--
CrawfordCurrie - 21 Sep 2005