[Zope] Value of radio button

Robert Rottermann robert@redcor.ch
Tue, 25 Jun 2002 21:35:24 +0200


you have to use tal:attributes
<input type="radio" name="release" tal:attributes="value foldersName"></td>

Robert
----- Original Message -----
From: <Rebecca.R.Hepper@seagate.com>
To: <zope@zope.org>
Sent: Tuesday, June 25, 2002 8:55 PM
Subject: [Zope] Value of radio button


> Hello All,
>
> I have the following bit of code that loops through and creates a radio
> button for every folder.  I would like the value of the radio button to be
> the title of the folder.  How do I do that?  That code below does not work
> -- it uses the actual name 'foldersName' as the value of the radiobutton
> not the title of the folder.
>
> Thanks!!
>
>
> <table class="normal">
>   <tr>&nbsp;</tr>
>   <tr valign="top" align="left"  tal:repeat="folders
> python:here.objectValues('Folder')">
>      <th tal:define="foldersName folders/title" tal:content
> ="foldersName">Title</th>
>       <td><input type="radio" name="release" value=foldersName></td>
>     </tr>
> </table>
>
>
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>