ecshop分类页显示当前分类名称的相关调用
发布时间:12/03 来源: 浏览:
关键词:
比如我们想在分类页列表做个显示当前分类的名称,那么直接模板处定义为:
{$cat_name}
然后修改 category.php
在 $smarty->assign('page_title', $position['title']); // 页面标题
$smarty->assign('ur_here', $position['ur_here']); // 当前位置
后增加:
$smarty->assign('cat_name', $cat['cat_name']);