Tags:
create new tag
view all tags

SID-00593: Using rename in a form

Status: Answered Answered TWiki version: Perl version:
Category: CategoryMissingFunctionality Server OS: Last update: 16 years ago

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

      Change status to:
ALERT! 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.
SupportForm
Status Answered
Title Using rename in a form
SupportCategory CategoryMissingFunctionality
TWiki version

Server OS

Web server

Perl version

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