Both sides previous revisionPrevious revisionNext revision | Previous revision |
random_page [2023/05/31 21:45] – admin | random_page [2023/06/01 14:15] (current) – admin |
---|
==== dummy ==== | ==== generate a random page ==== |
To generate a random page | After installing https://www.dokuwiki.org/plugin:randompage2, appending ''?do=randompage'' or ''?do=nsrandompage'' to a page url will redirect to a random page within the wiki or within the namespace respectively. |
* install https://www.dokuwiki.org/plugin:randompage2 | |
* Append ''?do=randompage'' or ''?do=nsrandompage'' to the page url. This will redirect to a random page within the wiki or within the namespace respectively. | For example, https://www.kamaraju.xyz/dk/start?do=randompage will redirect to a randompage in this wiki and https://www.kamaraju.xyz/dk/public/sotm/start?do=nsrandompage will redirect to a randompage within the public/sotm namespace. |
* For example, https://www.kamaraju.xyz/dk/start?do=randompage will redirect to a randompage in this wiki and https://www.kamaraju.xyz/dk/public/sotm/start?do=nsrandompage will redirect to a randompage within the public/start namespace. | |
* install https://www.dokuwiki.org/plugin:shortcutkey | Further, if you install the ShortcutKey Plugin (https://www.dokuwiki.org/plugin:shortcutkey) and map |
* Admin -> Configuration Settings -> Plugin -> Shortcutkey -> | |
* Set "Shortcut key to show random page within current namespace (Randompage plugin is required)" to N | Set “Shortcut key to show random page within current namespace (Randompage plugin is required)” to N |
* Set "Shortcut key to show random page (Randompage plugin is required)" to A | Set “Shortcut key to show random page (Randompage plugin is required)” to A |
* Then use 'a' and 'n' to show random pages with in the wiki or at the namespace level. | |
| in the configuration settings (''Admin -> Configuration Settings -> Plugin -> Shortcutkey''), you can use ''a'' and ''n'' to get a random page within the wiki and within the namespace respectively. |
| |
Ref:- https://github.com/solewniczak/dokuwiki-plugin-randompage2/issues/5 | Ref:- https://github.com/solewniczak/dokuwiki-plugin-randompage2/issues/5 |
| |