DokuWiki

It's better when it's simple

User Tools

Site Tools


tips:links-to-dokuwiki-commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tips:links-to-dokuwiki-commands [2010-01-04 22:37] 95.180.201.125tips:links-to-dokuwiki-commands [2023-03-16 14:16] (current) Chris75
Line 1: Line 1:
 +====== Links to DokuWiki commands aka. Action Links ======
  
 +You can simply append the command ('login', 'register', 'edit', ...), aka. [[:devel:action_modes|action mode]], as URL parameter to the page id in a normal internal link to create an [[:plugin:actionlink|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]]%%'' |[[?do=login|login]] |shortcut to login |
 +|''%%[[?do=admin&page=config|settings]]%%'' |[[?do=admin&page=config|settings]] |access your admin settings |
 +|''%%[[?id=sidebar&do=edit|edit sidebar]]%%'' \\ ''%%[[:sidebar?do=edit|edit sidebar]]%%'' \\ ''%%[[sidebar?do=edit|edit sidebar]]%%'' |[[?id=sidebar&do=edit|edit sidebar]] |open your sidebar in edit mode \\ (all of those will work)|
 +|''%%[[?purge=true|reload page]]%%'' |[[?purge=true|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: [[do>revisions]] 
 +
 +If you configured interwiki links to open in new windows, your 'command' links will open in a new window too :-|
 +
 +[[pike@kw.nl|Pike]] //2005-Apr-29//
 +
 +>[[http://wiki.erazor-zone.de/doku.php?id=wiki:users:e-razor|E-Razor]]: You'll have to use these lines when not using mod_redirect: 
 +><code>do     ./doku.php?do={URL}</code>
  
  
tips/links-to-dokuwiki-commands.txt · Last modified: 2023-03-16 14:16 by Chris75

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