广州传奇网络
地址:广州市天河区东圃大马路富华楼C座
电话:13808825895
QQ:1564443073
ECSHOP分类树选中高亮可以让访客知道自己正在浏览的栏目
制作如下:
打开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}