[ZPT] ZPT Dynamic URL

Phillip Hutchings sitharus at gmail.com
Wed Jun 8 17:23:53 EDT 2005


On 09/06/05, Sukhbir Gill <sukhbirgs at gmail.com> 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/
sitharus at gmail.com / sitharus at sitharus.com


More information about the ZPT mailing list