織夢(mèng)arclist標(biāo)簽支持文章高亮currentstyle屬性方法:
include/taglib/arclist.lib.php
第一步:查找:
$channelid = $ctag->GetAtt('channelid');
替換:
$channelid = $ctag->GetAtt('channelid');
$currentstyle = $ctag->GetAtt('currentstyle');
第二步:查找:
$ctag->GetAtt('limit'), $flag,$ctag->GetAtt('orderway'), $ctag->GetAtt('subday'), $ctag->GetAtt('noflag'),
$tagid,$pagesize,$isweight
替換:
$ctag->GetAtt('limit'), $flag,$ctag->GetAtt('orderway'), $ctag->GetAtt('subday'), $ctag->GetAtt('noflag'),
$tagid,$pagesize,$isweight,$currentstyle
第三步:查找:
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='')
第四步:查找:
$row['textlink'] = "<a href='".$row['filename']."'>".$row['title']."</a>";
替換:
$row['textlink'] = "<a href='".$row['filename']."'>".$row['title']."</a>";
if($currentstyle=='on')
{
if($row['id']==$arcid) $row['style']="on";
else $row['style']="";
}
調(diào)用方法:
{dede:arclist titlelen='60' currentstyle='on' row='8' typeid='3'}
<li><a class="[field:style/]" href="[field:arcurl/]" title="[field:title/]">[field:title/]</a></li>
{/dede:arclist}
版權(quán)聲明: 本站資源均來自互聯(lián)網(wǎng)或會(huì)員發(fā)布,如果侵犯了您的權(quán)益請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)刪除!謝謝!
轉(zhuǎn)載請(qǐng)注明: 織夢(mèng)arclist標(biāo)簽當(dāng)前文章高亮方法