NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use
trunk.foswiki.org to view this page for some minimal testing.
Use
Item11383 for general documentation changes for release 1.1.5. Use
Item9693 for docu changes for release 2.0.
Item8679: Allow RedirectPlugin to handle AUTOINC
| Priority: |
CurrentState: |
AppliesTo: |
Component: |
WaitingFor: |
| Enhancement |
Being Worked On |
Extension |
RedirectPlugin |
|
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