织梦arclist标签支持高亮currentstyle属性方法

织梦arclist标签支持高亮currentstyle属性方法,第1张

织梦arclist标签支持高亮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'] = "".$row['title']."";            

替换:                     

$row['textlink'] = "".$row['title']."";   if($currentstyle=='on') {if($row['id']==$arcid)  $row['style']="on";else $row['style']="";  }  

 

调用方法: 

{dede:arclist titlelen='60'  currentstyle='on'  row='8' typeid='3'} 

[field:title/]

 {/dede:arclist}

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/3010283.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-09-27
下一篇 2022-09-27

发表评论

登录后才能评论

评论列表(0条)

保存