[dokuwiki] Re: Export parameters to external links

  • From: Chris Smith <chris@xxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 02 Jun 2006 08:40:30 +0100

Oliver Geisen wrote:

As i understand for now, plugins may allow other syntax to take place inside their own (between entry and exit), but is there a way to do this with links as well ?

With a syntax plugin this would require a link replacement plugin. That is a plugin that matches to the same patterns (or just the subset you wish to handle) and handles that code as you would like. If its username you want to substitute, remember to make the page or plugin turn off caching.

What i want to do is: [[http://myserver.foo.bar/myscript.php?name=%USERNAME%]]
where %USERNAME% should be replaced by: $_SESSION[$conf['title']]['auth']['user'];
Given DokuWiki's caching strategy and assuming the number of different substitutions is small you are probably best post processing the output from tpl_content with an action plugin. Check the events, I think you are looking for tpl_content_display or maybe tpl_act_render.

--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: