dede织梦channelartlist高亮并且让嵌套标签里的

网站建设 2022-07-27 08:12www.1681989.com免费网站
dede:channelartlist标签当前栏目高亮实现教程 打开 /clude/taglib/channelartlist.lib.php 找到 $pv-Fields[ typeurl ] = GetOneTypeUrlA($typeids[$i]); 在它下面加入 if($typeids[ $i ][ id ] == $refObj-TypeLk-TypeInfos[ id ] || $typeids[ $i ][ id ] == $refObj-TypeLk-TypeInfos[ re […]



dede:channelartlist标签当前栏目高亮实现教程

打开 /clude/taglib/channelartlist.lib.php 找到

$pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]);

在它下面加入

if($typeids[$i]['id'] == $refObj->TypeLk->TypeInfos['id'] || $typeids[$i]['id'] == $refObj->TypeLk->TypeInfos['reid'] || $typeids[$i]['id'] == $refObj->TypeLk->TypeInfos['id'] || $typeids[$i]['id'] == GetTopid($refObj->TypeLk->TypeInfos['id']) )
{
	$pv->Fields['currentstyle'] = $currentstyle ? $currentstyle : 'current';
}
else
{
	$pv->Fields['currentstyle'] = '';
}

然后 dede:channelartlist 标签里是高亮标签调用是

{dede:field.currentstyle 

Copyright © 2016-2025 www.1681989.com 推火网 版权所有 Power by