Somethng missing from the documentation?
Opened this issue · 3 comments
I installed and activated the plugin, from the Extension Manager. I want a "Random" link on every page. If I put:
<randompage_link>Random</randompage_link>
in my template main.php, or in a footer.html included file, nothing happens.
Is this something more I need to do?
In an ordinary page, adding the code "<randompage_link>Random</randompage_link>" works but it is not clear how to do it for every page.
The code <randompage_link>Random</randompage_link>
is a part of wiki syntax and therefore works only where the dokiwki parser applies. This is why it doesn't work in main.php, or in a footer.html. If you want to use it here, copy the HTML code that is generated by dokwiki parser.
To add to @bortzmeyer comment above
Appending ?do=randompage
or ?do=nsrandompage
to a page url will redirect to a random page within the wiki or within the namespace respectively.
Further, if you install the ShortcutKey Plugin (https://www.dokuwiki.org/plugin:shortcutkey) and map
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
in the configuration settings, you can use a
and n
to get a random page within the wiki and within the namespace respectively.