Tags:
create new tag
view all tags

SID-00190: Direct Creation of TWiki Pages from a script

Status: Answered Answered TWiki version: 4.0.4 Perl version:
Category: CategoryAutomation Server OS: TWikiVMDebianStable Last update: 17 years ago

I am able to create a script that can create text files formatted in TWiki markup language.

To establish the pages under a Web is it just a simple matter of copying the files into the web directory? I'm thinking that I might also need to issue an rcs command for each file from the command line to complete the establishment? If so what would that rcs command be?

The reason I want to do this is I find that I can turn rather MS Word into about 250 nice twiki topics and I'm assuming that the approach I am proposing would be a good way to get the topics onto the twiki. This would really help me to get twiki under way as a documentation repository.

Hope you can advise.

-- TWikiGuest - 14 Mar 2009

Discussion and Answer

> To establish the pages under a Web is it just a simple matter of copying the files into the web directory?

Yes, but you need a couple of lines of meta data. E.g., take a look at the raw version of this topic: https://www.twiki.org/cgi-bin/view/Support/SID-00190?raw=debug

-- SeanCMorgan - 15 Mar 2009

TWiki is designed to be robust, you do not need to generate the meta data, such as %META:INFO. You also do not need to create a .txt,v RCS file. The first time someone updates a page, the history file will be created. The original version is preserved as rev 1, and a new rev 2 is create. You can generate form meta data if needed.

If you want to create the RCS files use the official API to post content over http. More at TWikiScripts (save), WwwMechanize, CurlTool, CPAN:LWP.

If you created a useful M$-Word to TWiki converter please consider contributing it back to the TWiki community. You cold create a MsWordToTWikiAddOn at AddOnPackageHowTo.

-- PeterThoeny - 15 Mar 2009

There is MsWordToTWikiMLAddOn, but I'm reluctant to mention it: even though I've done a few revisions on it, it still has a long way to go.

-- SeanCMorgan - 16 Mar 2009

      Change status to:
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.
SupportForm
Status Answered
Title Direct Creation of TWiki Pages from a script
SupportCategory CategoryAutomation
TWiki version 4.0.4
Server OS TWikiVMDebianStable
Web server

Perl version

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2009-03-25 - PeterThoeny
 
  • 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.