tips:links-to-dokuwiki-commands
Table of Contents
Links to DokuWiki commands aka. Action Links
You can simply append the command ('login', 'register', 'edit', …), aka. action mode, as URL parameter to the page id in a normal internal link to create an action link. If no page id is provided, the URL parameter is appended to the current page's URL.
Examples
Code | Link | Action |
---|---|---|
[[?do=login|login]] | login | shortcut to login |
[[?do=admin&page=config|settings]] | settings | access your admin settings |
[[?id=sidebar&do=edit|edit sidebar]] [[:sidebar?do=edit|edit sidebar]] [[sidebar?do=edit|edit sidebar]] | edit sidebar | open your sidebar in edit mode (all of those will work) |
[[?purge=true|reload page]] | reload page | refresh the current page |
For DokuWiki versions prior to Anteater (2010-11-07)
DokuWiki commands like login
, register
etc. are usually available through buttons in the interface. If you want to display them as links in your text you can add an interwiki namespace (file: interwiki.local.conf)
do ?do={URL}
in conf/interwiki.local.conf
. You can then write links like
[[do>revisions]]
and it will show up as an interwiki link: revisions
If you configured interwiki links to open in new windows, your 'command' links will open in a new window too
Pike 2005-Apr-29
tips/links-to-dokuwiki-commands.txt · Last modified: by Chris75