Mercurial > p > roundup > code
diff doc/customizing.txt @ 5158:63294ed25e84
issue1842687: Keywords: After creating, stay in "Create New" mode.
Added support for __redirect_to form variable to the new action. If
set the value should be a url. If __redirect_to is present, the user is
directed to the url after the new action has completed successfully.
E.G. when creating new keywords you often want to stay on the create
new keyword page rather than change to the "Edit keyword" page. Setting
__redirect_to to the new keyword creation url lets you keep adding new
keywords.
This mechanism works for any @action=new. So you could keep the user
on an "add new issue" page so they can keep adding issues one after the
other.
Also change the classic tracker keyword.item.html page to have a
checkbox (checked by default) to stay on the "new keyword" page rather
than displaying the newly created keyword item.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Fri, 22 Jul 2016 16:32:01 -0400 |
| parents | 882fa4d9bead |
| children | 12190efa30d4 |
line wrap: on
line diff
--- a/doc/customizing.txt Fri Jul 22 16:10:42 2016 -0400 +++ b/doc/customizing.txt Fri Jul 22 16:32:01 2016 -0400 @@ -1539,7 +1539,10 @@ **new** Add a new item to the database. You may use the same `special form - variables`_ as in the "edit" action. + variables`_ as in the "edit" action. Also you can set the + ``__redirect_to`` form variable to the URL that should be displayed after + the new item is created. This is useful if you want to create another + item rather than edit the newly created item. **retire** Retire the item in the database. @@ -1605,6 +1608,9 @@ - Remove items from a multilink property of the current item. - Specify that some properties are required for the edit operation to be successful. +- Redirect to a different page after creating a new item (new action + only, not edit action). Usually you end up on the page for the + created item. - Set up user interface locale. These operations will only take place if the form action (the @@ -1712,6 +1718,11 @@ Any of the form variables may be prefixed with a classname or designator. +Setting the form variable: ``__redirect_to=`` to a url when @action=new +redirects the user to the specified url after successfully creating +the new item. This is useful if you want the user to create another +item rather than edit the newly created item. + Two special form values are supported for backwards compatibility: @note
