create new tag
, view all tags
If you want to have a "delete" link to delete a page, you make it invoke the "rename" script with appropriate parameters to move the topic to the "Trash" web. For example,

<a href="http://twiki.org/cgi-bin/rename/rename/Codev/NonWikiWordInConfirm?newweb=Trash"> delete me </a>
Now, this will zap the topic immediately, and it will bottle out if the topic name is a non-wikiword. To overcome these problems you should nominally add the following additional URL parameters; confirm=on&nonwikiword=on.

However the nonwikiword parameter is not passed on to the rename script from the renameconfirm template i.e. if you call rename?confirm=on&nonwikiword=on, and then confirm the deletion, it will invoke the rename URL without the nonwikiword parameter. To resolve this problem the renameconfirm template needs

<input type="hidden" name="nonwikiword" value="%URLPARAM{"nonwikiword"}%" />
in it somewhere.

-- CrawfordCurrie - 31 Mar 2004

Fix is in TWikiAlphaRelease and TWiki.org.

I do not recommend to zap topics without checking first for referring topics. Unlike in a file system, linked topics are the norm, not the exception.

-- PeterThoeny - 01 Apr 2004

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2004-04-28 - PeterThoeny
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.