Kenneth Gonsalves wrote:
[...]
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
<input type=radio name="chosen" tal:attributes="value result/id">
You should take a closer look at the ZPT documentation:
http://www.plope.com/Books/2_7Edition/ZPT.stx
http://www.plope.com/Books/2_7Edition/AdvZPT.stx
HTH,
Wolfram
_______________________________________________
ZPT mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/zpt