SID-01576: Export a web to static HTML
| Status: |
Answered |
TWiki version: |
5.1.1 |
Perl version: |
5.8 |
| Category: |
CategoryPlugins |
Server OS: |
RH7 |
Last update: |
13 years ago |
The PublishContrib is no longer maintained and PublishWebPlugin is now suggested to save static html,
but what is the recommeneded method of exporting an entire web with topics and attachments as static html in a tar or zip file?
Ideally we would like to run a script by cron it occassionaly produce a static version of a web
thanks in advance for suggestions
--
PeterJones - 2012-11-02
Discussion and Answer
I recommend to:
- Install and configure the PublishWebPlugin
- Manually publish the pages of that web once (after that, html pages are updated on each topic save)
- Install a cron to zip the html root directory
--
PeterThoeny - 2012-11-02
Thanks for the feedback. Nearly there but it is not clear how to make the initial publish of all current pages. The doc says to include
%PUBLISHWEB{"publish" topic="Name"}%
What does this mean though , do I have to include the in just the preferences or in one topic? Then what needs to be
viewed in order to create the html ?
--
PeterJones - 2012-11-05
Copy the
WebPublish topic (located in the distribution) to your publish web, go to that topic, select "all" to publish all. For convenience add a link to this topic in the top-menu.
--
PeterThoeny - 2012-11-05
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.