广州传奇网络

地址:广州市天河区东圃大马路富华楼C座

电话:13808825895

邮箱:gz020wbs@163.com

QQ:1564443073

网址:http://www.020wbs.com/

首页 > 二次开发Ecshop二次开发 > ECSHOP商品分类树商品分类红色高亮选中

二次开发Ecshop二次开发

二次开发Ecshop二次开发

ECSHOP商品分类树商品分类红色高亮选中

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}