WikiMatrix
  • Forum
  •  » TWiki
  •  » importing many files at once

#1 2006-08-24 07:37:18

Roger N
Member
Registered: 2006-08-20
Posts: 5

importing many files at once

Peter -

  Does TWiki have a method to import many (say, hundreds at a time) txt or html files?

  thanks -

  Roger N

Offline

 

#2 2006-08-25 03:29:44

YaGe
Member
From: Melbourne, Australia
Registered: 2006-08-23
Posts: 5
Website

Re: importing many files at once

When I have to do this, I use the WikiAPI, a simple java program to loop through all the text files and use the setPage function of the WikiAPI to upload each of the text files. Its a good idea to create an account for the script such as "AutoUploadUser" so the page history records something sensible.


__________________________________
http://www.jacobrhoden.com

Offline

 

#3 2006-09-05 20:38:10

PeterThoeny
Member
From: San Jose, CA
Registered: 2005-12-14
Posts: 265
Website

Re: importing many files at once

Roger,

there is no pre-installed method to import many txt or html files. It can be done in several ways though.

1. WebDAVPlugin - expose the TWiki topic namespaces and attachment namespaces as WebDAV folders. With this you can drag & drop files (on Windows with a tool such as WebDrive). Notice that this plugin currently works only with Apache 1.3 web servers.

2. Write your own program that uses the cURL command line tool to transfer content into TWiki with URL syntax. You can invoke the save script to create TWiki topics.

3. Write a plugin using TWiki's REST interface (Representational State Transfer). TWiki has an extensive plugins API to interact with content.

4. Modify one of the existing converters, usually named <other-wiki>ToTWikiAddOn; see list at Tag:import.

5. Drop .txt files in TWiki markup into a TWiki data subdirectory, aka TWiki web.

-- Peter AT StructuredWikis DOT com - http://www.structuredwikis.com/ - http://twiki.org/

Last edited by PeterThoeny (2006-09-05 21:00:37)

Offline

 
  • Forum
  •  » TWiki
  •  » importing many files at once

You are not logged in.


Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB