Tags:
create new tag
view all tags

Question

I have a lot of text files I want to upload into TWiki but NOT as attachments. I want to upload them into a Topic's main content area. Is there a way to do this?

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: RedHat linux AS3, kernel 2.4.21-15.0.2.EL
Web server: Apache/2.0.40
Perl version: 5.8.0
Client OS: WinXP
Web Browser: Mozilla 1.7.3
Categories: Installation, Topic revisions, Forms, Missing functionality, Documentation, Deployment

-- RickVonRichter - 22 Dec 2004

Answer

Well, one way is to simply copy them into the relevant twiki/data/SomeWeb directory from the filesystem. You'll want to make them all have good filenames like WikiNames.txt

They won't have any revision history or metadata (like forms, last author, etc.) until the first within-twiki edit is saved.

-- MattWilkie - 23 Dec 2004

Or you can use some CurlTool or CPAN:LWP magic.

Also, not sure, TWikiShellContrib might be useful as well.

Yet another solution: Use a modified GenericWikiToTWikiAddOn, or a specific one like DolphinToTWikiAddOn.

-- PeterThoeny - 23 Dec 2004

Or a cshell wrapper around EditTWikiExternalEditorAddOn ? something like:

#!/bin/tcsh -f 

set web="MyWeb"

foreach f ( MyList OfFiles AllWith AWikiWord ForTheirName)
   echo "Uploading $f"
   cat > do_one.csh << EOF
#!/bin/tcsh -f
                                                                                                                               
cp $f \$1
EOF
    chmod a+x do_one.csh
    setenv EDITOR do_one.csh

    edittwiki  $web.$f
end

-- GillesEricDescamps - 15 Mar 2005

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2005-03-16 - GillesEricDescamps
 
  • 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.