国产精品青青青高清在线观看,亚洲中文字幕大香视频蕉无码,久久人人人人玩人爽精品,亚洲av无码之日韩精品,在线视频国产99,麻豆91青青国产在线观看,蜜桃日韩乱码精品一区二区三区,中午字幕日韩无码 http://www.vanhostingweb.com 分享技術(shù),共同進步 Sat, 10 Nov 2018 16:36:54 +0000 zh-Hans hourly 1 織夢dedecms讓channelartlist標簽里的channel支持currentstyle當前欄目高亮 http://www.vanhostingweb.com/1496.html http://www.vanhostingweb.com/1496.html#respond Mon, 08 Jan 2018 09:14:25 +0000 http://www.vanhostingweb.com/?p=1496 織夢dedecms讓channelartlist標簽里的channel支持currentstyle當前欄目高亮

打開 /include/taglib/channelartlist.lib.php 找到

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

大約在93行,在它下面添加

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

 

織夢標簽channelartlist默認是不支持多層嵌套后使用currentstyle高亮,修改一個文件可以實現(xiàn),模板里調(diào)用代碼:里面的hover就是你的高亮樣式,

<div class="nav">
    <ul>
        {dede:channelartlist row=7 typeid=top currentstyle=hover}
        <li class="{dede:field.currentstyle/}">
            <a href="{dede:field.typeurl/}">{dede:field.typename/}</a>
            <ul>
                {dede:channel type='son' noself='yes' row='10' currentstyle="<li class='hover'><a href='~typelink~'>~typename~</a></li>"}
                <li><a href="[field:typeurl/]">[field:typename/]</a></li>
                {/dede:channel}
            </ul>
        </li>
        {/dede:channelartlist}
    </ul>
</div>

 

打開 \include\taglib\channel.lib.php

搜索

global $dsql;

修改成:

global $dsql,$_sys_globals;

繼續(xù)搜索

$row['id']==$typeid

修改成:

$row['id']==$typeid || $row['id']==$_sys_globals['typeid']

 

 

 

 

 

]]>
http://www.vanhostingweb.com/1496.html/feed 0
亚洲中文色欧另类欧美,久久久久久久激情,亚洲 日韩 欧美 另类 国产,中文字幕高清无码男人的天堂 www.sucaiwu.net