Item8679: Allow RedirectPlugin to handle AUTOINC
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release: n/a
RedirectPlugin checks that the destination topic exists. This is useful unless you want to redirect to, say, an edit URL pointing to AUTOINC where you know for sure that the topic WON'T EXIST.
Don't check that the target topic exists
If you pass the dontcheck=1 parameter then Foswiki will let you redirect to a topic that doesn't exist. This is very useful as a way to wrap up data form creators for applications.
e.g. RoleCreator:
%REDIRECT{newtopic="%SCRIPTURLPATH{"edit"}%/%BASEWEB%/UnnamedRoleAUTOINC1?topicparent=RoleList;templatetopic=RoleTemplate;t=%SERVERTIME{"$day$hour$min$sec"}%" dontCheck="1"}%
Now, for instance in
WebLeftBar you can just use:
* [[RoleCreator][Create Role]]
--
MartinCleaver - 07 Mar 2010
Committed revision 6676.
--
MartinCleaver - 07 Mar 2010
This was released in 1.1 of the
RedirectPlugin, 26 June 2010. Marking closed.
--
Main.GeorgeClark - 19 Feb 2018 - 18:11