名站网址导航为大驾家提供DedeCMS站点程序站点教程相关的知识,比如织梦程序安装教程,织梦程序系统故障等教程。目前,站点建设行业中,用织梦程序dedecms网站程序做站点的人也越来越多。当中可能会遇到很多问题。今天说一下 当站点建设类似于关于咱们多篇文章时,需要高亮功能的话如何实现。 $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}
关于DedeCMS站点程序站点教程相关的知识,就说到这里了希望能帮助朋友们。织梦程序多个栏目arclist具体调用副栏目不显示的解决办法