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
--
AlokNarula - 08 Feb 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.
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