{if $fields && !isset($error)} {foreach from=$fields key=key item=field name=field} {$field.document_title} {assign var=field_level value="0" scope="global"} {include file="$subtpl" items=$field.child} {/foreach} {else}