plugin:goto
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:goto [2011-08-30 23:36] – [syntax.php] 98.189.177.103 | plugin:goto [2018-05-31 00:35] – Klap-in | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
- | author | + | author |
- | email : 2006-07-19 | + | email : aormond@gmail.com, |
type : syntax | type : syntax | ||
- | lastupdate : 2006-07-19 | + | lastupdate : 2017-02-16 |
- | compatible : 2006-11-06 | + | compatible : Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor of Tsort |
depends | depends | ||
conflicts | conflicts | ||
- | similar | + | similar |
tags : redirect | tags : redirect | ||
- | downloadurl: | + | downloadurl: |
+ | bugtracker : https:// | ||
+ | sourcerepo : https:// | ||
---- | ---- | ||
- | This [[plugins|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. | + | 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. |
===== Syntax ===== | ===== Syntax ===== | ||
+ | |||
You can put the GOTO string anywhere in the document, but it probably makes the most sense to put it at the top. | You can put the GOTO string anywhere in the document, but it probably makes the most sense to put it at the top. | ||
+ | |||
~~GOTO> | ~~GOTO> | ||
- | 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). | + | |
+ | The above will force the document to redirect to the [[:wiki: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> | ||
You can change the number of seconds on the fly like so: | You can change the number of seconds on the fly like so: | ||
~~GOTO> | ~~GOTO> | ||
+ | |||
This will redirect the page after a 15 second pause. | This will redirect the page after a 15 second pause. | ||
- | By default, users can't set the pause length to be faster than three 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. | + | 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. |
===== Issues ===== | ===== Issues ===== | ||
- | *When editing a page with the '' | + | |
- | *The viewer' | + | * The viewer' |
- | *Currently, the plugin only works correctly for internal links. | + | * Currently, the plugin only works correctly for internal links. |
===== Installation ===== | ===== Installation ===== | ||
- | Download a zip [[http:// | + | Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[: |
- | If you want to modify the default pause length and the minimum pause length, edit the following lines in '' | + | The default pause length and the minimum pause length |
- | $seconds | + | |
- | $minSeconds = 3; //Minimum number of seconds allowed before redirect. | + | |
- | You can change the redirect message that is displayed by editing the following line in syntax.php: | + | ===== Revision History ===== |
- | | + | |
- | '' | + | |
- | '' | + | * 2006-07-19 --- Made it easier |
+ | * 2016-10-02 --- Moved to GitHub, added compability for PHP 7, added redirection to headlines, integration | ||
===== syntax.php ===== | ===== syntax.php ===== | ||
+ | |||
+ | This section was required for installation till the code was moved to GitHub. Now it isn't necessary any more. | ||
+ | |||
<code php syntax.php> | <code php syntax.php> | ||
<?php | <?php | ||
Line 115: | Line 127: | ||
//Setup VIM: ex: et ts=4 enc=utf-8 : | //Setup VIM: ex: et ts=4 enc=utf-8 : | ||
</ | </ | ||
- | |||
- | ===== Revision History ===== | ||
- | * 2006-06-30 --- Released.\\ | ||
- | * 2006-07-19 --- Made it easier to customize the displayed redirect message. | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
===== Discussion ===== | ===== Discussion ===== | ||
+ | |||
Right now this plugin can only redirect to internal wiki pages. I'd like it to be able to redirect to external pages, but I'm a little hazy on how DokuWiki processes URLs. Any help is appreciated. | Right now this plugin can only redirect to internal wiki pages. I'd like it to be able to redirect to external pages, but I'm a little hazy on how DokuWiki processes URLs. Any help is appreciated. | ||
Line 158: | Line 160: | ||
---- | ---- | ||
+ | Note that the download links (to yeahway.com) are **broken** as of 2013-07-11. I'm not touching them as I don't know what policy is. | ||
+ | ---- | ||
+ | |||
==== Why not allow to redirect to external sites? ==== | ==== Why not allow to redirect to external sites? ==== | ||
plugin/goto.txt · Last modified: 2023-10-30 23:58 by Klap-in