Question
I have been reading the
ReadOnlyOfflineWiki page and found a script, twiki2html, submitted that will convert the TWiki to static html. This is exactly what I need so that I can copy our company's Wiki to CD for offline viewing and Disaster recovery. The problem I'm running into is that it seems to be written for an older version of the TWiki tool. It is trying to call wiki.pm and uses several calls from within wiki.pm that have been changed. I realize that wiki.pm has been renamed to TWiki.pm and that most of these calls are now something like TWiki::Store::someFunction. Does anyone have an updated version of the twiki2html script?
- TWiki version: TWikiRelease01Dec2001
- Web server: Apache
- Server OS: Linux
- Web browser: Various
- Client OS: Various
--
MattMillard - 11 Oct 2002
Answer
Plugins.GenHTMLAddon might be the answer.
--
PeterThoeny - 12 Oct 2002
You may also want to try
Plugins.PublishAddOn.
--
DiegoZamboni - 17 Jan 2003
Follow-up Question
Sweet! But on the plugin page it mentions that it was developed for an older release of TWiki... Has anyone tried it yet with
TWikiRelease01Dec2001? And if so did it work?
--
KaelinColclasure - 11 Dec 2002
Yes, it works with later versions of TWiki, although you will need to go through the script
GenHTML.pm and change "CGI::dump" to "CGI::Dump". Also, the params of the script are hard-coded. To use my normal template I had to remove the default genhtml.tmpl file and symlink it to my view.theoretic.tmpl file.
I'm thinking of working on a caching/static html generator for TWiki that would be better than
GenHTML to allow for normal viewing to be done entirely off the static pages instead of the view script. See
BuiltinCache
--
AdamTheo - 11 Dec 2002
Hi
AdamTheo, have you consider to use Wget (found in the gnu repository) to downlaod the site into static pages? It might work. -I use it to download specific pages into a subdirectory and then I sincronize that directory with the PDA for offline viewing.-
--
AntonioVega - 11 Dec 2002
Hiya Antonio. Good to see you here. Small world
No, I had not thought of using wget, but that might work, I'll have to think about it. I'll post here with what I decide on.
--
DiegoZamboni - 17 Jan 2003