[pmwiki-users] Again: Parameterizing Content

Joachim Durchholz jo at durchholz.org
Wed May 17 16:34:48 CDT 2006


Felix E. Klee schrieb:
> At the moment, I just want to know whether parameterized/dynamic Wiki
> pages *could* be realized with PMWiki, perhaps with the help of some
> extension.

Yes.
You can have your config.php look into the $_REQUEST array and place it 
in a variable that could be accessible from any recipe code. I.e.

   $my_x = $_REQUEST ['inp_x'];

will fill the PHP variable $my_x with 3 if the URL had inp_x=3 in the 
query string.

I don't know how to set up a new page variable though, or whether that's 
the best way to continue processing - I think a lot depends on what 
exactly you want to achieve.

Regards,
Jo




More information about the pmwiki-users mailing list