咨詢:189 3198 6878

售后:0311-87360066

石家莊網站建設中用織夢做網站如何使arc支持也支持current
發布時間:2013-10-22 點擊次數:

 目前,網站建設行業中,用織夢做網站的人也越來越多。當中可能會遇到很多問題。今天說一下

     當網站建設類似于關于我們多篇文章時,需要高亮功能的話如何實現。

$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'] = "<a href='".$row['filename']."'>".$row['title']."</a>";
在下面插入:
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="<li class='current' ><a href='~typelink~'>~typename~</a></li>"}
     [field:array runphp='yes']
         if(@me['currentstyle']){
             @me = @me['currentstyle'];
         }else{
             @me = "<li class='current' ><a href='{@me['arcurl']}'>{@me['title']}</a></li>";
         }
     [/field:array]
{/dede:arclist}


------------------------------------------------------------------------------------------
藍點網絡提供:
網站建設APP開發微信小程序400電話、軟件開發、服務器托管/租用等業務。
從2003年開始,我們始終堅守【網站建設】服務,19年從未放棄!!



咨詢:189 3198 6878 
 
售后:
0311-8736 0066

專注網站建設19年,服務客戶超7000家! 咨詢:189 3198 6878 售后:0311-87360066 早8:00—晚22:00(周一至周日) 在線咨詢
主站蜘蛛池模板: 久久国产精品二国产精品| 国产好深好硬好爽我还要视频 | 成年私人影院免费视频网站 | 日本一道综合久久aⅴ免费| 国产成人久久精品| 久久精品夜夜夜夜夜久久| 国产三级a三级三级野外| 最近中文字幕免费mv视频7| 国产精品igao视频| 亚洲av无码一区二区三区国产| 91不卡在线精品国产| 欧美日本国产VA高清CABAL| 国产精品拍拍拍| 亚洲一区欧美一区| 久久狠狠爱亚洲综合影院| 黄页网站在线观看免费| 日韩大片在线永久免费观看网站| 国产在线视频不卡| 久久99精品国产麻豆婷婷| 色偷偷91综合久久噜噜噜男男| 成人看免费一级毛片| 免费萌白酱国产一区二区| a毛片免费视频| 欧美日韩高清性色生活片| 国产精品亚洲欧美大片在线看 | 亚洲日韩乱码中文无码蜜桃 | 里番acg全彩本子在线观看| 日本免费无遮挡吸乳视频电影| 国产一区二区三区免费视频| 三个黑人上我一个经过| 男人边吃奶边做性视频| 国产超碰人人模人人爽人人添| 亚洲一区爱区精品无码| 草莓视频黄瓜视频| 成人午夜兔费观看网站| 亚洲黄色在线观看视频| 18女人毛片水真多免费| 日韩在线视频免费看| 午夜视频体验区| 97碰在线视频| 最新国产乱人伦偷精品免费网站|