Question
If I entrust my Twiki with some reports is there an easy way
for me to actually keep or obtain a copy of the files either as
text twiki-text or or exported as html. I'd like to be able to do this periodically
and not have to go through each page individually to export it.
Thanks,
David Mallon.
Environment
--
DavidMallon - 30 Aug 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.
You can do that with add-ons, see
GenPDFAddOn,
PublishAddOn.
You can also use
wget in a cronjob to grab a set of TWiki topics in HTML form. Apply a different skin if needed, e.g. by appending
?skin=print or
?skin=plain to the URL.
--
PeterThoeny - 30 Aug 2005
along the lines of
wget, you could setup
rsync.
you might also be able to leverage
CPAN:WWW::Mechanize::TWiki
another skin option to get the raw topic text (but not metadata) is
?skin=text&raw=on&contenttype=text/plain, e.g.,
https://twiki.org/cgi-bin/view/Support/HowToExportTwikiFiles?skin=text&raw=on&contenttype=text/plain
another variation on that is
?skin=text&raw=debug&contenttype=text/plain, e.g.,
https://twiki.org/cgi-bin/view/Support/HowToExportTwikiFiles?skin=text&raw=debug&contenttype=text/plain which gets you the raw text including meta data.
--
WillNorris - 30 Aug 2005
--
PeterThoeny - 30 Aug 2005
yet another possibility is
GetAWebAddOn
--
WillNorris - 04 Sep 2005
I would like to include TWiki pages in offline websites using php. This is easy to do using the above commands to grap just the raw content of a topic and the topic is written using HTML syntax. However, if the topic is written using wiki syntax then I need to substitute the to html syntax. Can you suggest an easy method to do this?
--
PeterJones - 31 Aug 2005
Append
?skin=text, e.g.,
https://twiki.org/cgi-bin/view/Support/HowToExportTwikiFiles?skin=text
--
PeterThoeny - 31 Aug 2005