Tags:
create new tag
view all tags

Question

Hello, question answerers -

I want to move some existing documents to a TWiki site. I'd like to write a perl program to do the necessary conversion.

What's the best way, from within perl, to create a new topic and the associated version control stuff? I suppose I could impersonate a web browser and invoke the 'save' CGI, but I'm hoping there's a less cumbersome way.

P.S. I'm an experienced perl programmer, so terse, technical answers are fine.

-- KevinWalker - 04 May 2002

Answer

Take the register script as an exampe, it creates user topics. See the part with comment # create user topic if not exist: You supply the text, create a meta data object, then call TWiki::Store::saveTopic().

Note that this is not a published function, it might change with an upcoming release. All official functions that plugins can use are in TWiki::Func.

-- PeterThoeny - 04 May 2002

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2002-05-04 - 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.