Monday 20 September 2004 9:35:45 am
Hello! I have a class with a field of type Integer, in this field i'm going to store section id. So i want that this field apear as ComboBox with avaible sections, not a TextBox (as default for Integer type). I override template "content/datatype/edit/ezinteger.tpl" and put in it following code:
{let section_list = fetch(content, section_list)}
<select name="???????" size="1">
{section var = section loop = $section_list}
<option value = {$section.id}>{$section.name}</option>
{/section}
</select>
{/let}
It works ok, but what a value i need to assign to 'name' attribute ?
|