Search code examples
twiki

TWiki add new topic programmatically


How can I add a new topic to TWiki programmatically?

I've got a working TWiki (http://twiki.org/) installation, everything works fine.

I need to find a way to create and add new Topics through the command line, programmatically.

Any ideas how this can be accomplished?

Thanx!

d.


Solution

  • What I did was

    • take a look at some wiki pages (files in <twiki-home>/data/Main/<PageName>.txt) to figure out the file/text format (pretty much what you see in the browser, preceded by one line of meta info)
    • generate that text format with a perl script
      with content based on data from a DB or some Excel
    • copy the files to the apropriate location using putty's pscp on windows