织梦arclist标签当前文章高亮方法

织梦arclist标签当前文章高亮方法,第1张

概述织梦arclist标签支持文章高亮currentstyle属性方法: include/taglib/arclist.lib.php 第一步:查找: $channelid = $ctag-GetAtt(channelid); 替换: $channelid = $ctag-GetAtt(channelid); $currentstyle = $ctag-GetAtt(currentstyle); 第二步:查找: $

织梦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'),$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,$isweight='N',$currentstyle='')

第四步:查找:

              $row['textlink'] = "href='".$row['filename']."'>".$row['Title']."

        替换:     

              $row['textlink'] = "href='".$row['filename']."'>".$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'}

 

 {/dede:arcList}


总结

以上是内存溢出为你收集整理的织梦arclist标签当前文章高亮方法全部内容,希望文章能够帮你解决织梦arclist标签当前文章高亮方法所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

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

原文地址: https://outofmemory.cn/zz/1052955.html

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

发表评论

登录后才能评论

评论列表(0条)

保存