-
攝影拍攝短視頻類網(wǎng)站織...
-
園林綠化景觀建設(shè)類網(wǎng)站...
-
LED顯示屏中英雙外貿(mào)類網(wǎng)...
-
道路護(hù)欄交通設(shè)施類網(wǎng)站...
-
中藥藥材百科資訊類網(wǎng)站...
-
農(nóng)業(yè)機(jī)械設(shè)備類網(wǎng)站織夢(mèng)...
-
潮流資訊信息類網(wǎng)站織夢(mèng)...
-
企業(yè)公司行業(yè)通用類網(wǎng)站...
-
灶具電器設(shè)備類網(wǎng)站織夢(mèng)...
-
環(huán)保電動(dòng)掃地車類網(wǎng)站織...
-
環(huán)保設(shè)備研發(fā)制造類網(wǎng)站...
-
園林景觀設(shè)計(jì)類網(wǎng)站織夢(mèng)...
-
水上樂園設(shè)備類網(wǎng)站織夢(mèng)...
-
水性工業(yè)漆類企業(yè)網(wǎng)站織...
-
車輛機(jī)油工業(yè)潤(rùn)滑油類網(wǎng)...
-
新媒體自媒體運(yùn)營資訊類...
-
APP應(yīng)用程序官網(wǎng)類網(wǎng)站織...
-
辦公學(xué)習(xí)教程資訊類網(wǎng)站...
-
網(wǎng)站建設(shè)營銷類網(wǎng)站織夢(mèng)...
-
汽車配件類網(wǎng)站織夢(mèng)模板...
當(dāng)織夢(mèng)網(wǎng)站建設(shè)類似于關(guān)于我們多篇文章時(shí),需要高亮功能的話如何實(shí)現(xiàn)。
$channelid = $ctag->GetAtt('channelid');
在下面插入:
$currentstyle = $ctag->GetAtt('currentstyle');
2、查找:
return lib_arclistDone($refObj, $ctag, $typeid, $ctag->GetAtt('row'), $ctag->GetAtt('col'), $titlelen, $infolen,$ctag->GetAtt('imgwidth'), $ctag->GetAtt('imgheight'), $listtype, $orderby,$ctag->GetAtt('keyword'), $innertext, $envs['aid'], $ctag->GetAtt('idlist'), $channelid,$ctag->GetAtt('limit'), $flag,$ctag->GetAtt('orderway'), $ctag->GetAtt('subday'), $ctag->GetAtt('noflag'),$tagid,$pagesize,$isweight);
替換為:
return lib_arclistDone($refObj, $ctag, $typeid, $ctag->GetAtt('row'), $ctag->GetAtt('col'), $titlelen, $infolen,$ctag->GetAtt('imgwidth'), $ctag->GetAtt('imgheight'), $listtype, $orderby,$ctag->GetAtt('keyword'), $innertext, $envs['aid'], $ctag->GetAtt('idlist'), $channelid,$ctag->GetAtt('limit'), $flag,$ctag->GetAtt('orderway'), $ctag->GetAtt('subday'), $ctag->GetAtt('noflag'),$tagid,$pagesize,$isweight,$currentstyle);
其實(shí)就是在調(diào)用函數(shù)的最后加了一個(gè)$currentstyle實(shí)參
3、查找
function lib_arclistDone(&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlelen=30, $infolen=160,$imgwidth=120, $imgheight=90, $listtype='all', $orderby='default', $keyword='',$innertext='', $arcid=0, $idlist='', $channelid=0, $limit='', $att='', $order='desc', $subday=0, $noflag='',$tagid='', $pagesize=0, $isweight='N')
替換為:
function lib_arclistDone(&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlelen=30, $infolen=160,$imgwidth=120, $imgheight=90, $listtype='all', $orderby='default', $keyword='',$innertext='', $arcid=0, $idlist='', $channelid=0, $limit='', $att='',$order='desc', $subday=0, $noflag='',$tagid='', $pagesize=0,$isweight='N',$currentstyle='')
其實(shí)就是在函數(shù)后面加了一個(gè)$currentstyle=''形參
4、查找
$row['textlink'] = "".$row['title']."";
在下面插入:
if($currentstyle && $row['id']==$arcid){$currentstyle = str_replace('~typelink~', $row['filename'], $currentstyle);$row['currentstyle'] = str_replace('~typename~', $row['title'], $currentstyle);}
保存。
調(diào)用方法:
{dede:arclist titlelen='42' row='10' currentstyle="~typename~"}[field:array runphp='yes']if(@me['currentstyle']){@me = @me['currentstyle'];}else{@me = "{@me['title']}";}[/field:array]{/dede:arclist}




