IIANDishidden<>I.";

改成
if($type==son)
{
$typeid=(!empty($refObj->TypeLink->TypeIn" />

"景先生毕设|www.jxszl.com

dede织梦内容页列表页二级栏目三级栏目同时高亮方法

2022-10-29 16:21编辑: www.jxszl.com景先生毕设
效果演示:
dede织梦内容页列表页II级栏目III级栏目同时高亮方法
实现教程



I..打开include/taglib/channelartlist.lib.php找到

$tpsql="reid=$typeidANDispar

 更多精彩就在: 51免费论文网|www.jxszl.com 
t<>IIANDishidden<>I.";

改成
if($type==son)
{
$typeid=(!empty($refObj->TypeLink->TypeInfos[id])?GetTopid($refObj->TypeLink->TypeInfos[id]):0);
$tpsql="reid=$typeidANDishidden<>I.";
}
else
{
$tpsql="reid=$typeidANDispart<>IIANDishidden<>I.";
}

II.打开include/taglib/channel.lib.php找到

if($type==son&&$reid!=0&&$totalRow==0)

改成

if($type==son&&$reid!=0&&$totalRow==0&&$noself==)

III.后台-系统-其它选项去掉php
dede织梦内容页列表页II级栏目III级栏目同时高亮方法
列表页和内容页标签写法

    {dede:php}
    $GLOBALS[thisid]=intval($refObj->Fields[typeid]);
    $GLOBALS[reid]=intval($refObj->Fields[reid]);
    $GLOBALS[topid]=intval($refObj->Fields[topid]);
    {/dede:php}
    {dede:channelartlisttype=son}
    {dede:field.typename/}

      {dede:channeltype=sonnoself=yes}
      [field:typename/]
      {/dede:channel}

    {/dede:channelartlist}



原文链接:http://www.jxszl.com/biancheng/dedecms/74380.html