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 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.

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 | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2007-02-13 - AlokNarula
 
  • 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.