{if $data.relations} {if $data.display eq 'count'} {tr _0=$data.relations|count}%0 element(s){/tr} {else}
{if $data.display eq 'toggle'} {tr _0=$data.relations|count}%0 element(s){/tr} {/if}
{jq} $('#display_f{{$field.fieldId|escape}} ul').each(function () { var list = this; $(this).sortList(); $(this).parent().find('.toggle').click(function () { $(list).toggle(); return false; }).each(function () { $(list).hide(); }); }); {/jq} {/if} {/if}