Как сделать чтобы подкатегории в "Обзор категорий" выводились не в одну строку а каждая с новой строки...сам не осилил. Прилагаю код. спасибо
{* шаблон блока обзора категорий *}
{if $big_categories_tree && $big_categories_tree_count>0}
{counter name='s1' start=-1 skip=1 print=false assign='select_counter_var'}
{section name=h1 loop=$big_categories_tree}
{if $big_categories_tree[h1].categoryID != 1 && $big_categories_tree[h1].parent == 1}
{assign var="tmp" value=0}
{counter name='s1'}
{if ($select_counter_var) is div by 3}{/if}
{if $big_categories_tree[h1].picture != ""}
{$big_categories_tree[h1].name}{if $smarty.const.CONF_SHOW_COUNTPROD eq 1} ({$big_categories_tree[h1].products_count}){/if}
|
{/if}
|
{if ($select_counter_var+1) is div by 3}
{else}
| |
{/if}
{/if}
{/section}
{else}
{$smarty.const.STRING_NO_CATEGORIES}
{/if}