[dokuwiki] Parameters in links revisited

  • From: Chris G <cl@xxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 16 Dec 2010 11:11:16 +0000

Just in case this was missed because I appended it to a very old thread:-

> > Is it documented/explained anywhere yet?
>
> No I don't think so. But there's not much to explain. Just put your
> parameters in your link: [[some:page?foo=bar&baz=1|Title goes here]]
>
I'm just trying to use this and have a rather basic question.

Having added a link like [[testpage?foo=astring&bar=12345|Test Page Name]]
how do I use those variables I have set?

I.e. how do I get to use foo and bar in testpage?  What I specifically
want to do is to set a value in a template.  For example I am using the
sql plugin and want to select data based on a supplied value so I have a
line as follows:-

    <sql db="sqlite:////var/www/boat/data/meta/boat.db" wikitext="enable" 
special="plain" ..>
    SELECT Description from bePlaces where Name like "%@location@%"</sql>

I want to be able to have a link pointing to the page with the above in
it which specifies the contents of that "%@location@%".

I realise the syntax to use the link parameters will be different, the
above is the syntax when using the template plugin.

-- 
Chris Green
-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: