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="https://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