婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 網站建設 > 建站知識 > 讓dedecms支持notypeid的屬性

讓dedecms支持notypeid的屬性

POST TIME:2017-11-13 00:21

  打開/include/taglib/arclist.lib.php文件,找這段代碼(大概在130行):

  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

  );

  在最后括號最后加上(注意前面的逗號):

  ,$ctag->GetAtt('notypeid')

  然后再找到這一段代碼(大概在168行):

  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')

  在括號的最后加上(注意前面的逗號):

  ,$notypeid=0

  最后再找到這一句:

  $orwheres[] = ' arc.arcrank > -1 ';

  在其前面增加以下代碼:

  if(!empty($notypeid))

  {

  $orwheres[] = " and arc.typeid NOT IN (".GetSonIds($notypeid).")";

  }

  這樣,代碼就修改完畢了。保存之后就在arclist標簽里試試看notypeid屬性吧。對于網站欄目多,內容顯示時又錯綜復雜的情況,這樣的屬性還是蠻實用的。

  使用方法:

  {dede:arclist row=6 orderby=pubdate type='image.' imgwidth='108' imgheight='150' channelid='1' notypeid='1'}



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

  • 400-1100-266
主站蜘蛛池模板: 崇文区| 夏津县| 黄平县| 视频| 桃源县| 石狮市| 安徽省| 威信县| 遂溪县| 甘孜县| 安康市| 安庆市| 和龙市| 樟树市| 墨脱县| 建昌县| 抚顺市| 莫力| 河曲县| 岢岚县| 赤城县| 郯城县| 焦作市| 岱山县| 冀州市| 湟中县| 普宁市| 兴宁市| 怀远县| 民乐县| 金沙县| 蒙城县| 盐津县| 樟树市| 五指山市| 凤台县| 临朐县| 三原县| 岚皋县| 天峨县| 庆城县|