<{foreach $v.childrens as $vv}> <{if $vv.parent_id==$v.cat_id}> <{$vv.title}><{if !$vv@last && $vv@iteration<3 }>|<{/if}> <{/if}><{if $vv@iteration >3 }><{break}><{/if}><{/foreach}>
<{foreach $v.childrens as $vv}><{if $vv.parent_id==$v.cat_id}><{$vv.title}><{if !$vv@last}>|<{/if}><{/if}><{/foreach}>