Author Topic

Jan Borsodi

Wednesday 16 April 2003 1:29:15 am

Comment37550

Had you used enum you would been able to get radiobuttons by choosing it in the class edit.

Using other datatypes (int,string) requires some custom template code. If you know the identifier of the attribute you can access it directly and generate the radioboxes.

Example:
{let myattribute=$node.data_map.myidentifier}
{section name=Radio loop=array('Accounts','Sales')}
<input type="radio" name="ContentObjectAttribute_ezstring_data_text_{$myattribute.id}" value="{$:item}">{$:item}</input>
{/section}
{/let}

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq