[dokuwiki] Re: Can one expand Dokuwiki variables directly by any means?

  • From: Luis Machuca Bezzaza <ryan.chappelle@xxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Fri, 17 Dec 2010 12:50:38 -0300

Chris G escribió:
> Having discovered where link parameters get to I now want an easy way of
> using them!  :-)
> 
> Say I have placed some values into $_GET by doing the following:-
> 
>     [[pagex?FirstName=Chris&Surname=Green]]
> 
> Is there any simple wiki syntax I can use to get to see them in pagex or
> do I *have* to write a plugin to do it?  If there was a simple syntax to
> simply get their values it would be wonderful as one could then simply
> have something like the following in pagex:-
> 
>     ======Personal Information======
> 
>     My name is %FirstName% %Surname%. 
> 

I guess one has to write a plugin, since I have found no specific syntax to
do it anyway. Just in case, I plan to rework chi's "Var Plugin" to be able
to fetch $GET variables once I take in the development next year. In the
meantime, writing an action plugin to perform a wubstitution seems the best
way to do it, since using syntax you may run into nesting and ordering issues.

Seeing you.

-- 
----
Luis Machuca Bezzaza
Secretario (S) GULIX - Grupo de Usuarios de GNU/Linux de la IX Región
http://www.gulix.cl/
----

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

Other related posts: