校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 網站建設 > 建站知識 > 網站建設中用織夢做網站如何使arc支持也支持c

網站建設中用織夢做網站如何使arc支持也支持c

POST TIME:2017-11-13 00:17

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

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

$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}



    上一篇:dede5.6和5.7版本中實現dede:list按權重排序

    下一篇:推薦文章標題被加粗,而勾選了加粗的文章標題

    收縮
    • 微信客服
    • 微信二維碼
    • 電話咨詢

    • 400-1100-266
    主站蜘蛛池模板: 阜宁县| 万年县| 玛沁县| 龙江县| 旺苍县| 赤城县| 万州区| 土默特左旗| 新田县| 石城县| 岐山县| 昌都县| 深州市| 蒲江县| 平武县| 泰州市| 黄浦区| 刚察县| 三河市| 东城区| 滁州市| 武冈市| 奉贤区| 敖汉旗| 灌南县| 剑阁县| 兰州市| 镇江市| 宁远县| 通江县| 探索| 淮安市| 府谷县| 宾阳县| 长春市| 洛南县| 紫云| 怀安县| 宜州市| 鄯善县| 清原|