Hi,
I’m trying to use the {custom_fields} tags in an SAEF to edit an entry.
{exp:weblog:entries limit="1" weblog="specs_english"}
<table border='1'>
<tr>
<th>Edit:</th>
<th>{title}</th>
</tr>
{exp:weblog:entry_form weblog="specs_english" return="site/index" preview="site/entry" }
<input type='hidden' name='entry_id' value='{entry_id}'>
{custom_fields}
<tr>
<td>{field_label}{if required}* {/if}</td>
<td>
{if textarea}
<textarea id="{field_name}" name="{field_name}" dir="{text_direction}" cols="50" rows="{rows}" onclick="setFieldName(this.name)">{field_data}</textarea>
{/if}
{if textinput}
<input type="text" dir="{text_direction}" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50" onclick="setFieldName(this.name)" />
{/if}
{if pulldown}
<select id="{field_name}" name="{field_name}">
{options}<option value="{option_value}"{selected}>{option_name}</option>{/options}
</select>
{/if}
{if date}
<input type="text" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}" size="50" onclick="setFieldName(this.name)" />
{/if}
{if relationship}
<select id="{field_name}" name="{field_name}">
{options}<option value="{option_value}"{selected}>{option_name}</option>{/options}
</select>
{/if}
</td>
</tr>
{/custom_fields}
{/exp:weblog:entry_form}
</table>
{/exp:weblog:entries}
(BTW - adding entries is done via the CP, not via this SAEF.)
My problem is: {field_data} is always empty.
Can anyone hit me with a cluestick to tell me what I am doing wrong? The entry’s title and id are generated okay.
Thanks a bunch… Nico
