分类树选中高亮可以让访客知道自己正在浏览的栏目
制作如下:
打开library里的category_tree.lbi,在foreach循环里添加判断
<a href=
"{$cat.url}" {if $cat.id eq $category}style="color:red"{/if}>{$cat.name|escape:html} <a href=
"{$child.url}" {if $child.id eq $category}style="color:red"{/if}>{$child.name|escape:html} <a href=
"{$childer.url}" {if $childer.id eq $category}style="color:red"{/if}>{$childer.name|escape:html}