TWiki adds a new theme programmatically

How can I add a new topic to TWiki programmatically?

I have a working TWiki ( http://twiki.org/ ), everything works fine.

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

Any ideas on how this can be done?

Thanx!

etc.

+2


source to share


2 answers


What I did was

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



+1


source


I think using TWiki scripts is a cleaner way, since you don't have to worry about metadata in the TXT file or updating the .changes file.



Just use wget to call POST with a "save" script ( see documentation here )

0


source







All Articles