common namespace, so named because it is common to all users.
Table of Contents
Compatible with DokuWiki
- 2023-04-04 "Jack Jackrum" unknown
- 2022-07-31 "Igor" unknown
- 2020-07-29 "Hogfather" yes
- 2018-04-22 "Greebo" yes
The default pause time, before the redirect, and the minimum allowable pause time can be set in the configuration manager. See below for further details.
You can put the GOTO string anywhere in the document, but it probably makes the most sense to put it at the top.
The above will force the document to redirect to the syntax page after the default number of seconds. It comes set at three seconds. You can change the default number of seconds in the Configuration Manager.
It is possible to link to a subheading of the page:
Pause before redirect
You can change the number of seconds before the redirect like so:
This will redirect the page after a 15 second pause.
By default, users can't set the pause length to be faster than two seconds, but this can be changed in the Configuration Manager by setting a new value for the
minSeconds option. The reason for the minimum pause length is that if it's too fast, it becomes difficult to hit the 'Edit Page' button before the redirect happens. If you can't edit the page, then it becomes tricky to remove the redirect.
goto plugin includes updates as described below.
— Myron Turner 2019-04-05 22:48
Auto login enables registered users, on logging into the wiki, to be automatically redirected to their own user page.The page will be created if it does not already exist. There are two ways to implement the auto login feature.
1. Embedded GOTO Syntax
The first applies only to the current user. It uses the GOTO syntax with the
user wildcard in place of the page id:
This must be placed on the wiki's main page, so that when the user logs in, the page displayed in the browser is the page with this markup. No message is printed to the screen. and the user is redirected to the user page in the root namespace. If the userid is “foo”, the user page will be “:foo”. This does not take a time setting:
?tm. The redirection occurs after a 3 second delay on login.
2. Configured Background Process
Unlike 1 this method requires no additional plugin markup and does not require that the browser lands on any particular page. On login, the auto login feature redirects the user to the user's page or start page. This page and its namespace are based on the settings in either the
auto_options setting or the
group_options setting. For this to work, the
auto_login option must be set to true. The redirection occurs immediately, without a delay.
The redirects are governed by the
group_options settings. The
auto_options redirect to pages and namespaces based on the userid. The
group_options redirect to pages located in namespaces based on group membership.
|seconds||Time till redirection (seconds)||3|
|minSeconds||Minimum time allowed till redirection (seconds)||2|
|auto_login||On login, automatically go to predefined page, as set in ||false|
|auto_options||Target for the auto_login page based on ||:user_page|
|common_ns1)||Used with |
|group||Comma separated list of group namespaces to which users can be redirected. Different users can be in different groups. If a user belongs to two groups on this list, the user will be redirected to the first.|
|group_options||The user can be redirected either to the group start page or to the user's own page in the group namespace. The options are ||start_page|
|only_option||The options are ||default|
There a four options available for defining the user page and namespace to which the auto login will be directed. In each case
user stands for the userid and
ns for namespace. If the userid is “foo”, then the first option would give you “:foo” in the root namespace, the second option “:foo:foo”. The start page is one of DokuWiki's
basic configurations and defaults to
start. The fourth option requires that the GOTO common namespace (
common_ns) option be set. These are the four possibilities for defining the auto login page, where “foo” is the userid:
Therre are two possibilities for defining the auto login page based on group membership. In each case the group name is the name of the namespace so that both options locate the redirect page in a namespace which is the same as the group name:
External links now supported. The following:
will redirect to wiki:welcome at mturner.org. The on-page notification will read:
You will be redirected to https://mturner.org/devel/doku.php?id=wiki:welcome in approximately 3 seconds.
- fixed non-auto redirecting to user (2021-03-01 16:47)
- Merge pull request #10 from stblassitude/master (2021-02-27 23:41)
- Properly handle #goto_go not defined (2021-02-27 16:39)
- Merge pull request #9 from cziehr/hogfather (2021-01-24 19:30)
- update version (2021-01-21 20:32)
- Fixed GOTO>user (2021-01-21 20:25)
- Update settings.php (2020-11-08 11:01)
- updates info.txt (2020-09-26 20:41)
- synced cookie timeout with goto-user branch (2020-09-26 20:37)
- Merge pull request #7 from turnermm/goto_user (2020-09-26 20:33)
- Merge branch 'master' into goto_user (2020-09-26 20:33)
- Fixed the GOTO>user mode (2020-09-26 20:18)
- update plugin.info.txt (2020-09-17 23:54)
- update plugin.info.txt (2020-09-17 23:53)
- Synced with cziehr (2020-09-17 23:37)
- Set GOTO_LOGIN cookie befor exiting action.php if auto is set to true… (2020-09-17 23:11)
- update version (2020-09-17 16:35)
- Fix for broken GOTO>usr (2020-09-17 16:24)
- Merge pull request #6 from intervisionlord/russian-localization (2019-11-25 05:53)
To review old issues and discussion: old_discussion