Tags:
create new tag
view all tags

Question

How to copy a topic in TWiki? I want to make a duplicate page (with a different TWiki name, of course). I can see that I can move and rename things but how about making a copy?

Thanks in advance.

Environment

TWiki version: TWikiRelease04x00x00
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- YuryIKocharyan - 15 Nov 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.

See TWikiVariables for %INCLUDE% .

-- MarcoSilva - 15 Nov 2007

Well, %INCLUDE{...}% is more like a reference to an existing topic: If you change the topic, the "copy" will change as well. You can create a "real" copy by using TWiki's edit or save script with the templatetopic parameter. The parameter onlynewtopic can be given to make sure that the copy does not overwrite an existing topic. See TWiki.TWikiScripts#save for all parameters.

-- HaraldJoerg - 15 Nov 2007

Thanks for your replies.

-- YuryIKocharyan - 16 Nov 2007

You might also be interested in the solution described in CloneTopic.

-- JohnFitzpatrick - 16 Nov 2007

Can someone give an example of creating a new topic by copying the Main.Registration topic example using the command line? I would like to create a custom registration page based on Main.Registration but having trouble doing it. Thanks.

-- Jay Timber - 2013-06-21

You can do that on the browser level of command line level. If on browser level, create a new topic, edit it in raw mode, copy the raw text of TWiki.TWikiRegistration, and modify to your needs. If on command line copy the file, such as: cd /twiki/data; cp -p TWiki/TWikiRegistration.txt Main/MyRegistration.txt, then edit that topic using the browser.

-- Peter Thoeny - 2013-06-21

Change status to:
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2013-06-21 - 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.