You are here: Foswiki>Tasks Web>Item10577 (11 Apr 2011, GeorgeClark)Edit Attach

Item10577: Add the parameter forceoverwrite to the save CGI script

pencil
Priority: Enhancement
Current State: Proposal Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: FoswikiUISave
Branches:
Reported By: MartinRaabe
Waiting For:
Last Change By: GeorgeClark
I try to copy one topic to another web by the form:
<form name="new" action="%SCRIPTURLPATH{save}%/Public/" method="post" target="_blank">
     <input type="hidden" name="topic" value="Public.%TOPIC%"/>
     <input type="hidden" name="templatetopic" value="Private.%TOPIC%" />
     <input type="hidden" name="topicparent" value="NewsLetterList" />
     <input type="hidden" name="onlywikiname" value="off" />
     <input type="hidden" name="onlynewtopic" value="off" />
     <input type="hidden" name="forcenewrevision" value="on" />
     <input type="submit" class="foswikiSubmit" value="Copy to Public Web" />
</form>

When the destination topic already exists, the content of the templatetopic is not applied to the save action.

A new parameter forceoverwrite would behave as if the destination topic would be not existing (the templatetopic would be used) but the resulting destination topic is generated in a new revision.

Alternatively a new script called copy would be helpful, that would just take the source content and place it at the destination target in a new revision.

-- MartinRaabe - 30 Mar 2011

This probably needs some discussion in a feature proposal.

-- GeorgeClark - 11 Apr 2011
 

ItemTemplate edit

Summary Add the parameter forceoverwrite to the save CGI script
ReportedBy MartinRaabe
Codebase 1.1.2
SVN Range
AppliesTo Engine
Component FoswikiUISave
Priority Enhancement
CurrentState Proposal Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic revision: r2 - 11 Apr 2011, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy