SID-00593: Using rename in a form
I want to provide an easy button for deleting a given page. (The page needs to be recreated over and over from a template and I can't simply overwrite it so I need to delete it.
But rename also refuses to overwrite an existing page.
How can I create a unique name using my form?
--
VickiBrown - 2009-10-27
Discussion and Answer
Try to create a form that contains a generated unique name for the destination.
Untested snippet (use HTML form calling the rename script with
method="post") :
<input type="hidden" name="newweb" value="Trash" />
<input type="hidden" name="newtopic" value="%BASETOPIC%-%SERVERTIME{$year$mo$day$hour$min$sec}%" />
See
TWikiScripts
--
PeterThoeny - 2009-10-27
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.