[ZPT] building a href in zpt

Kenneth Gonsalves lawgon at thenilgiris.com
Fri Jun 17 07:33:28 EDT 2005


On Friday 17 Jun 2005 12:37 pm, Phillip Hutchings wrote:
> > <a tal:attributes="href string:${portal_url}/editdemo?="
> >  tal:content="result/name">name</a>
> >
> > but i cant figure out how to insert the tal:contern="result/id"
> > after the '?='
> >
> > any clues?
>
> You do it the way the documentation tells you to:
> <a tal:attributes="href
> string:${portal_url}/editdemo?=${result/id}"
> tal:content="result/name">name</a>

thanks, that worked, but a further problem arose. What i am trying to 
do is add a radio group with the value of id for each item. The code 
is like this:

<table>
  <tr>
   <th>
   </th>
   <th>
   Costcentre Name
   </th>
  </tr> 

  <tr tal:repeat="result batch">
 <td>
   <input type=radio name=chosen value = "string:${result/id}">
  </td>
  <td>
<a tal:attributes="href string 
${portal_url}/avsapdemo?id=${result/id}"
 tal:content="result/name">name</a></td>
  </tr>
  </table>

i get a list with the radio buttons, but the value of the radio button 
is not the id but 'string:${result/id}'

i *did* check all the docs to the best of my ability - but no luck

-- 
regards
kg

http://www.livejournal.com/users/lawgon
tally ho! http://avsap.org.in
ಇಂಡ್ಲಿನಕ್ಸ வாழ்க!


More information about the ZPT mailing list