+ Reply to Thread
Results 1 to 2 of 2

Thread: Importing Content

  1. #1

    Default Importing Content

    Could anyone provide me with some advice on importing content? I have a HTML helpfile (actually a HTML file and then a collection of images) that one of my staff has been using but that I would now like to upload into my Wiki.

    Is there an easy way to do this while retaining some of the structure of the file? Please bear in mind I know virtually nothing about HTML or Wiki's but have a functioning Deki Wiki install that I'm very happy with.

    If I have to, I know I can get someone to just import each page on its own and create the correct structure as they go along, but this would take a couple of days (in my extimation).

    Any suggestions to save time would be greatly appreciated.

  2. #2
    Join Date
    Feb 2007
    Location
    San Diego, CA
    Posts
    733

    Default

    I'm not aware of an existing utility for automatically posting a HTML help file to Deki Wiki, although it would be very useful. You could create one using Deki Wiki API to automatically generate pages and post content to them:

    Code:
    curl -c cookies.txt http://username:password@deki-hayes/@api/deki/users/authenticate
    
    curl -b cookies.txt -d @test.html -H "Content-type: text/plain" "http://deki-hayes/@api/deki/pages/=pagename/contents"
    See these threads for more information on using the POST content API: http://forums.opengarden.org/showthread.php?t=342 and http://forums.opengarden.org/showthread.php?t=1061.

    If you do decide to write such a script, please let us know and we'd love to share it with the community!
    Last edited by brigettek; 02-15-2008 at 07:09 PM.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts