Tags:
create new tag
, view all tags

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:
Topic revision: r3 - 2007-02-13 - AlokNarula
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.