久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      織夢(mèng)cms調(diào)取欄目高亮特殊樣式的限制字節(jié)方法

      目前織夢(mèng)模板里currentstyle只支持dede:channel,這種只能調(diào)取一層欄目,而我們建站時(shí),在導(dǎo)航欄里經(jīng)常要調(diào)用到一級(jí)和二級(jí)欄目,然后讓當(dāng)前欄目高亮,使用特殊樣式,要用到dede:channelartlist。

      織夢(mèng)cms調(diào)取欄目高亮特殊樣式的限制字節(jié)方法

      現(xiàn)在的織夢(mèng)currentstyle在dede:channelartlist里中無(wú)法使用的,需要我們自己添加一些代碼才行。

      1、找到“/include/taglib/channelartlist.lib.php”這個(gè)文件; 【推薦學(xué)習(xí):織夢(mèng)cms】

      2、找到這行代碼“$pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]);”

      3、在這行代碼后復(fù)制以下代碼:

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

      4、調(diào)用方法:

      {dede:channelartlist typeid='top'}<li{dede:field.currentstyle/}><a href="{dede:field name='typeurl'/}">{dede:field name='typename'/}</a></li>{/dede:channelartlist}

      這樣就可以在調(diào)取所有欄目的dede:channelartlist標(biāo)簽里使用currentstyle了。

      其中:3、里面的 class="on" 就是在當(dāng)前欄目里加的樣式,可以把on修改為自己想要的。

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)