Hiere is an idea I have had about how to do this. I am not sure it will work, so I want to pass it by this group for comments.<br><br>My original problem is:<br><br><div style="margin-left: 40px;">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.<br></div><br>Here is the solution I have come up with:<br><ol><li>For each item in the page listing the short descriptions of product items, include a directive to produce a link to the single "ItemDetails" page (Store.ItemDetails) encoding GET arguments at the end of the URL. The directive would look like:<br>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">(:LinkWithArgs Store.ItemDetails linktext='XXX' arg1=value1 arg2=value2 ... :)</span><br><br></li><li>The HTML code emitted would be:<br>
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"><a href="<a href="http://wikihost.com/index.php?n=">http://wikihost.com/index.php?n=</a></span><span style="font-family: courier new,monospace;">Store.ItemDetails</span><span style="font-family: courier new,monospace;">&arg1=value1&arg2=value2">XXX</a></span><br>
<br></li><li><span style="font-family: courier new,monospace;"><span style="font-family: arial,helvetica,sans-serif;">On the page </span></span><span style="font-family: courier new,monospace;">Store.ItemDetails</span><span style="font-family: courier new,monospace;"><span style="font-family: arial,helvetica,sans-serif;">, I need to include a directive that retrieves the arguments as page text variables:<br>
</span><br><font face="courier new,monospace">(:GetArgs:)<br></font><br><font face="arial,helvetica,sans-serif">I'm not sure how to write this directive.</font></span></li></ol>So my questions are:<br><ol><li>Will this strategy work?<br>
<br></li><li>I know how to write the <span style="font-family: courier new,monospace;">(:LinkWithArgs:)<font face="arial,helvetica,sans-serif"> directive, but I'm not sure how to write the </font></span><span style="font-family: courier new,monospace;"><font face="courier new,monospace">(:GetArgs:)<font face="arial,helvetica,sans-serif">directive to </font></font></span><span style="font-family: courier new,monospace;"><font face="arial,helvetica,sans-serif">get the list of arguments provided with the link and set them as page text variables in the </font></span><span style="font-family: courier new,monospace;">Store.ItemDetails <font face="arial,helvetica,sans-serif">page.</font><br>
</span></li></ol>Thanks.<br><br>-- Harry<br><br>----<br>Harry Forsdick<br>New: (781) 923-0123 (Google Voice)<br><a href="http://forsdick.com">http://forsdick.com</a> | <a href="http://lexmedia.org">http://lexmedia.org</a> | <a href="http://lexmarketplace.org">http://lexmarketplace.org</a> | <a href="http://forsdick.blogspot.com">http://forsdick.blogspot.com</a> | <a href="http://lexdig.com">http://lexdig.com</a><br>
<br><br><div class="gmail_quote">On Mon, Jul 13, 2009 at 7:00 AM, Harry Forsdick <span dir="ltr"><<a href="mailto:harry@forsdick.com">harry@forsdick.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I should expand my question a bit:<br><br>Is there any way to pass such arguments using the notation [[Group.Name]]. I tried some obvious notations such as:<br><br> [[Group.Name?arg1=xxx&arg2=yyy]]<br><br>but that didn't work.<br>
<br>And also, is there some standard configuration or cookbook recipe for retrieving such argument-value pairs?<br><br>Thanks<div class="im"><br clear="all"><br>-- Harry<br><br>----<br>Harry Forsdick<br>New: (781) 923-0123 (Google Voice)<br>
<a href="http://forsdick.com" target="_blank">http://forsdick.com</a> | <a href="http://lexmedia.org" target="_blank">http://lexmedia.org</a> | <a href="http://lexmarketplace.org" target="_blank">http://lexmarketplace.org</a> | <a href="http://forsdick.blogspot.com" target="_blank">http://forsdick.blogspot.com</a> | <a href="http://lexdig.com" target="_blank">http://lexdig.com</a><br>
<br><br></div><div><div></div><div class="h5"><div class="gmail_quote">On Mon, Jul 13, 2009 at 6:53 AM, Harry Forsdick <span dir="ltr"><<a href="mailto:harry@forsdick.com" target="_blank">harry@forsdick.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
That would be fine. I'm a bit of an amateur with PmWiki. How would I do what you suggest?<div><br clear="all"><br>-- Harry<br><br>----<br>Harry Forsdick<br>New: (781) 923-0123 (Google Voice)<br><a href="http://forsdick.com" target="_blank">http://forsdick.com</a> | <a href="http://lexmedia.org" target="_blank">http://lexmedia.org</a> | <a href="http://lexmarketplace.org" target="_blank">http://lexmarketplace.org</a> | <a href="http://forsdick.blogspot.com" target="_blank">http://forsdick.blogspot.com</a> | <a href="http://lexdig.com" target="_blank">http://lexdig.com</a><br>
<br><br></div><div><div></div><div><div class="gmail_quote">On Mon, Jul 13, 2009 at 3:38 AM, Oliver Betz <span dir="ltr"><<a href="mailto:list_ob@gmx.net" target="_blank">list_ob@gmx.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Harry Forsdick wrote:<br>
<br>
>Part of my PmWiki based website has a page where product items are presented<br>
>in a short form. For each item listed I would like to have a link to a<br>
>single "ItemDetails" page to which I can pass arguments. This way, I can<br>
>create just one page whose content changes based on the arguments passed to<br>
>it.<br>
<br>
</div>if you want really link to a page, I think the only way is to pass GET<br>
parameters and make them available as page variable.<br>
<br>
Oliver<br>
<br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>