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.
You are here: Foswiki>Tasks Web>Extension? >RedirectPlugin>Item8679 (26 Jan 2012, GeorgeClark) Edit this topic text (e) Attach an image or document to this topic; manage existing attachments (a) View sequential topic history View without formatting (v) Create new topic Printable version of this topic (p) More: delete or rename this topic; set parent topic; view and compare revisions (m)

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
 

ItemTemplate edit

Summary Allow RedirectPlugin to handle AUTOINC
ReportedBy MartinCleaver
Codebase
SVN Range
AppliesTo Extension
Component RedirectPlugin
Priority Enhancement
CurrentState Being Worked On
WaitingFor
Checkins Foswikirev:6676 Foswikirev:6730
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches?
trunkCheckins
Release01x01Checkins?
Topic revision: r4 - 26 Jan 2012 - 01:55:40 - GeorgeClark
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads