Tags:
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://www.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

 
Topic revision: r3 - 2004-04-28 - PeterThoeny
 
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.