dede織夢channelartlist高亮并且讓嵌套標簽里的chan
導讀:織夢技巧織夢技巧dede:channelartlist標簽當前欄目高亮實現教程 打開 /include/taglib/channelartlist.lib.php 找到 $pv網站建設制作網站建設。
dede:channelartlist標簽當前欄目高亮實現教程 打開 /include/taglib/channelartlist.lib.php 找到 $pv-Fields[ typeurl ] = GetOneTypeUrlA($typeids[$i]); 在它下面加入 if($typeids[ $i ][ id ] == $refObj-TypeLink-TypeInfos[ id ] || $typeids[ $i ][ id ] == $refObj-TypeLink-TypeInfos[ re […]
dede:channelartlist標簽當前欄目高亮實現教程
打開 /include/taglib/channelartlist.lib.php 找到
$pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]);在它下面加入
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['curr高端網站建設entstyle'] = ''; }然后 dede:channelartlist 標簽里是高亮標簽調用是
{dede:field.currentstyle/}例如下面的寫法
嵌套dede標百度seo網站優化簽
<div class="nav"> <ul> {dede:channelartlist row=7 typeid=top currentstyle=current} <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>織夢教程
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-05-25 ,文章dede織夢channelartlist高亮并且讓嵌套標簽里的chan主要講述標簽,嵌套,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_8353.html