首页 > 教程 >
网站建设中用织梦做网站如何使arc支持也支持current
2023-04-02教程围观次
简介文章介绍目前,网站建设行业中,用织梦做网站的人也越来越多。当中可能会遇到很多问题。今天说一下当网站建设类似于关于我们多篇文章时,需要高亮功能的话如何实现。$channelid=$ctag->GetAtt('channelid');在下面插入:$currentstyle=$ctag->GetAtt('currentstyle');2、查找:returnlib_arclistDone($refObj,
目前,网站建设行业中,用织梦做网站的人也越来越多。当中可能会遇到很多问题。今天说一下
当网站建设类似于关于我们多篇文章时,需要高亮功能的话如何实现。
$channelid = $ctag->GetAtt('channelid');
在下面插入:
$currentstyle = $ctag->GetAtt('currentstyle');
2、查找:
return lib_arclistDone
(
$refObj, $ctag, $typeid, $ctag->GetAtt('row'), $ctag->GetAtt('col'), $ len, $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'), $ len, $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, $ len=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, $ len=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['text '] = "".$row[' ']."";
在下面插入:
if($currentstyle && $row['id']==$arcid){
$currentstyle = str_replace('~type ~', $row['filename'], $currentstyle);
$row['currentstyle'] = str_replace('~typename~', $row[' '], $currentstyle);
}
保存,即可。
调用方法:
{dede:arclist len='42' row='10' currentstyle="
- ~typename~ "}
- {@me[' ']} ";
[field:array runphp='yes']
if(@me['currentstyle']){
@me = @me['currentstyle'];
}else{
@me = "
}
[/field:array]
{/dede:arclist}
下载链接:网站源码/小程序源码/网站模板下载
下载排行
- 最新仿神马在线播放视频电影网站,带VIP系统,试看功能 全站数据,优化视频上传,三级分销 火车头采集
- 苹果CMS影视系统成品站打包源码+电影先生6.1.1模板优化版+15W数据
- 微信小程序+公众号的流量主收入图在线制作微信小程序源码
- 【最新版】社群圈子通讯录 快速打造个人私域流量
- 狂雨小说系统带全部插件/真正可以运营的小说站点系统源码
- Blackcat V2.2付费会员制WordPress资源站主题
- 最新去水印小程序源码/独立后台抖音去水印源码
- 最新ripro v2火车头采集发布模块和接口
- AI智能识别微信小程序源码带流量主功能
- H5网页漫画小说苹果cms模板源码/支持对接公众号/支持三级分销