DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:goto:old_discussion

This is an old revision of the document!


Installation

Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.

Requirements

This plugin requires the user to have JavaScript enabled in order to work to its fullest. However, a redirect link will still be displayed even without JavaScript.

The pause before a redirect is controlled by configuration options for the default pause length ( seconds ) and the minimum pause length allowed ( minSeconds ). See pause_length below.

Syntax

You can put the GOTO string anywhere in the document, but it probably makes the most sense to put it at the top.

~~GOTO>wiki:syntax~~

The above will force the document to redirect to the syntax page after the default amount of seconds. You can change the default number of seconds by editing the plugin (by default, this is 10 seconds).

It is possible to link to a subheading of the page:

~~GOTO>wiki:syntax#subheading~~

You can change the number of seconds on the fly like so:

~~GOTO>wiki:syntax?15~~

This will redirect the page after a 15 second pause.

Pause length

By default, users can't set the pause length to be faster than two seconds, but this can be changed by editing the plugin. 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.

Revision History

  • 2006-06-30 — Released.
  • 2006-07-19 — Made it easier to customize the displayed redirect message.
  • 2016-10-02 — Moved to GitHub, added compability for PHP 7, added redirection to headlines, integration of language files, integration of configuration manager for settings, avoid redirection while editing

Issues

  • The viewer's web browser must have JavaScript enabled in order to automatically redirect.
  • Currently, the plugin only works correctly for internal links.

Updated Version

plugin/goto/old_discussion.1552681326.txt.gz · Last modified: 2019-03-15 21:22 by turnermm

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki