[pmwiki-users] Passing arguments to a PmWiki page

Oliver Betz list_ob at gmx.net
Mon Jul 13 08:29:20 CDT 2009


Harry Forsdick weote:

>That would be fine.  I'm a bit of an amateur with PmWiki.  How would I do
>what you suggest?

Try this in your config.php:

|# make GET variables available as page variable, e.g. {$?foo}
|Markup('g2p', '<{$var}', '/\\{\\$\\?(\\w+)\\}/e', 'htmlentities(stripmagic($_GET[$1]))');

(it's the _GET part of the HttpVariables recipe)

But are you sure that you _want_ to do this? I don't understand the
dependencies of your data - do you want to explain which data is
passed to the product page?

Oliver




More information about the pmwiki-users mailing list