[pmwiki-users] Passing arguments to a PmWiki page

Harry Forsdick harry at forsdick.com
Mon Jul 13 08:54:42 CDT 2009


Yes, this seems to do the trick.  Thanks.

Question: any idea how I include an argument that contains spaces? Such as:

  [[Shop.ItemDetails?name=Book Title?price=10.95|Add to cart]]

Thanks.

-- Harry

----
Harry Forsdick
New: (781) 923-0123 (Google Voice)
http://forsdick.com  |  http://lexmedia.org  |  http://lexmarketplace.org |
http://forsdick.blogspot.com  |  http://lexdig.com


On Mon, Jul 13, 2009 at 9:47 AM, Petko Yotov <5ko at 5ko.fr> wrote:

> On Monday 13 July 2009 13:53:44 Harry Forsdick wrote:
> > Part of my PmWiki based website has a page where product items are
> > presented in a short form.  For each item listed I would like to have a
> > link to a single "ItemDetails" page to which I can pass arguments.  This
> > way, I can create just one page whose content changes based on the
> > arguments passed to it.
>
> Maybe the recipe HttpVariables might be used?
>
>  http://www.pmwiki.org/wiki/Cookbook/HttpVariables
>
> After installing it, in your product list, you make links like this:
>  [[ItemDetails?color=blue&price=19&size=XXL | xx-large, blue]]
>  [[ItemDetails?color=red&price=18&size=XL | x-large, red]]
>
>
> In your ItemDetails page, you have:
>  * Color :  {$?color}
>  * Size  :  {$?size}
>  * Price :  {$?price}
>
> Thanks,
> Petko
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090713/5cb3a565/attachment.html 


More information about the pmwiki-users mailing list