-
摄影拍摄短视频类网站织...
-
园林绿化景观建设类网站...
-
LED显示屏中英双外贸类网...
-
道路护栏交通设施类网站...
-
中药药材百科资讯类网站...
-
农业机械设备类网站织梦...
-
潮流资讯信息类网站织梦...
-
企业公司行业通用类网站...
-
灶具电器设备类网站织梦...
-
环保电动扫地车类网站织...
-
环保设备研发制造类网站...
-
园林景观设计类网站织梦...
-
水上乐园设备类网站织梦...
-
水性工业漆类企业网站织...
-
车辆机油工业润滑油类网...
-
新媒体自媒体运营资讯类...
-
APP应用程序官网类网站织...
-
办公学习教程资讯类网站...
-
网站建设营销类网站织梦...
-
汽车配件类网站织梦模板...
当织梦网站建设类似于关于我们多篇文章时,需要高亮功能的话如何实现。
$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);
其实就是在调用函数的最后加了一个$currentstyle实参
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='')
其实就是在函数后面加了一个$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);}
保存。
调用方法:
{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}




