The default template looks like:
Code: Select all
<!-- change settings template -->
{$title}
{if $message != ''}
{if $error != ''}
<p><font color="red">{$message}</font></p>
{else}
<p>{$message}</p>
{/if}
{/if}
{$startform}
{if $controlcount > 0}
<center>
<table width="100%">
{foreach from=$controls item=control}
<tr>
<td valign='top'>{$control->hidden}<font color="{$control->color}">{$control->prompt}{$control->marker}</font></td>
<td>
{if isset($control->image)}{$control->image}{/if}
{$control->control}<br/>{$control->addtext}
{if $control->required != true}
{if isset($control->control2)}{$control->prompt2} {$control->control2}<br/>{/if}
{/if}
</td>
</tr>
{/foreach}
</table>
</center>
{/if}
{$hidden}{$hidden2}{$submit}{$cancel}
{$endform}
<!-- change settings template -->
What's the correct syntax for checking if a field is hidden or not?