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
--
YuryIKocharyan - 15 Nov 2007
Answer
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