婷婷综合国产,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
主站蜘蛛池模板: 永寿县| 馆陶县| 嘉义县| 通城县| 闸北区| 祁连县| 长沙县| 白沙| 余江县| 邢台市| 邮箱| 保定市| 文山县| 松滋市| 弥勒县| 延长县| 富锦市| 娱乐| 望城县| 富顺县| 安泽县| 林西县| 海盐县| 盐城市| 镇赉县| 虎林市| 深水埗区| 临海市| 台中县| 祥云县| 兴业县| 东山县| 尖扎县| 休宁县| 丹寨县| 乌拉特中旗| 沙田区| 农安县| 固阳县| 梁平县| 兰考县|