r3 - 13 Feb 2007 - 05:58:19 - AlokNarulaYou are here: TWiki >  Support Web > HowToMoveTopicWithoutConfirmation
Tags:
, create new tag

Question

How can I move a topic from one web to another web without confirmation. When I invoke the rename script with the name of my source topic, I'm prompted to select the destination web and I have to click a Rename/Move button. I read the TWikiScripts page and found that the rename script takes the 'newweb' and 'newtopic' parameters where I can specify the destination Web and destination topic. How can I use the rename script with these parameters? The following statement did not achieve what I want:


* [[%SCRIPTURLPATH{"rename"}%/SourceWeb/%BASETOPIC%?newweb="DestinationWeb"&newtopic=%BASETOPIC%][Move to completed web]]

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Fedora Linux 5
Web server: Apache 2
Perl version: 5.8
Client OS: Windows XP
Web Browser: Firefox
Categories: Forms, Skin
-- AlokNarula - 08 Feb 2007

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

As long as newweb and newtopic are provided, and confirm is not set, it ought to do the rename. However your URL is bad. Don't use & in URLs. Use a semicolon. Don't quote parameters. Thus:

[[%SCRIPTURL{rename}%/SourceWeb/%BASETOPIC%?newweb=DestinationWeb;newtopic=%BASETOPIC%][Move to completed web]]

Note that newtopic should be a wikiname. if it isn't, then specify nonwikiword=1 as well.

-- CrawfordCurrie - 10 Feb 2007

Thanks for the answer Crawford. I'm able to move topics without confirmation just as I wanted!

-- AlokNarula - 13 Feb 2007

 
Change status to:
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo