Tags:
create new tag
view all tags

Question

I'm a user - not an admin, though I could probably get the admin to do things for me - of a TWiki where I work. We're using the Fri, 31 Mar 2006 build 9626 of TWiki.pm.

I'm building a documentation tree from a series of existing docs and a database, and I've written some Perl and SQL scripts to generate the initial content I want people to modify / collaborate on. The problem is that I now have hundreds of topics worth of Twiki "code", but no way to get it into the system except by creating the topics one-by-one and pasting into them. Is there a way to bulk upload topics? (Not attachments, mind you, but the topics themselves?)

Environment

TWiki version: Fri, 31 Mar 2006 build 9626
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- TWikiGuest - 19 Apr 2007

Answer

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.

(Please do not register with a screen name, twiki.org prefers real first and last names. If you prefer to stay anonymous login as a guest.)

-- PeterThoeny - 19 Apr 2007

If your topics are in txt format, you can just copy each file as SomeTopic.txt into the twiki/data/Webname directory

TWiki will see them and treat them as topics - and when someone edits it, TWiki will add the revision file, and its internal data.

-- SvenDowideit - 24 Apr 2007

You could also import data over http, see CPAN:LWP::UserAgent and CPAN:WWW::Mechanize.

-- PeterThoeny - 24 Apr 2007

And also CurlTool.

-- PeterThoeny - 25 Apr 2007

and also CPAN:WWW::Mechanize::TWiki

-- WillNorris - 27 Apr 2007

Closing this after more than 30 days inactivity; re-open if needed...

-- PeterThoeny - 02 Jun 2007

Change status to:
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2007-06-02 - 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-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.