Item10577: Add the parameter forceoverwrite to the save CGI script
Priority: Enhancement
Current State: Proposal Required
Released In: n/a
Target Release: n/a
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