Использую следующий код:
{%IFNOT catalog_empty %} {% FOR catalog %} {% IFNOT catalog.HIDE %} {% IF catalog.FIRST %}<ul>{% ENDIF %} <li><a href="{catalog.URL}">{catalog.NAME}</a> {% IF catalog.ISSET_SUB=0 %}</li>{% ENDIF %} {% IF catalog.LAST %} {% FOR out %}</ul>{%IFNOT catalog.out.LAST %}</li>{% ENDIF %}{% ENDFOR %} {% ENDIF %} {% ENDIF %} {% ENDFOR %} {% ENDIF %}