Re: ZPT Dynamic URL
Phillip Hutchings <[email protected]> Thu, 9 Jun 2005 09:23:53 +1200
| Newsgroups | gmane.comp.web.zope.page-templates |
|---|---|
| Message-ID | <[email protected]> |
On 09/06/05, Sukhbir Gill <[email protected]> wrote: > I am trying to create url in Page Template. One variable is coming from > query. Code is below > > <code> > <tal:x repeat="result batch" > > <tr> > <td class="rt_display"> > <a > href='FAQs/rpt_article_transaction2?id= -------------- '> > <span tal:replace="result/name">name goes here</span></a><br> > <span > tal:replace="result/Summary">Summary goes here</span> > </td> > </tr> > </tal:x> > </code> > > I want to insert id in place of ------------- from my result which i can > display on my page by using > <span tal:replace="result/id">id goes here</span>. I tried many different > ways but nothing works. > > Any help would be appreciated > > Thanks > sukhbir <a tal:attributes="href string:FAQs/rpt_article_transaction2?id=${result/id}"> -- Phillip Hutchings http://www.sitharus.com/ [email protected] / [email protected]