Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Documentation

-- DavidMallon - 30 Aug 2005

Answer

ALERT! 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

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2005-09-04 - WillNorris
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.