dedecms列表頁按文章權重排序:dede_arctiny 按weight排序_DedeCms教程

      編輯Tag賺U幣
      教程Tag:暫無Tag,歡迎添加,賺取U幣!
      dedecms列表頁按文章權重排序:dede_arctiny 按weight排序
      織夢dedecms列表頁實現文檔按權重weight排序(從小到大的順序)方法:
       
      1,在list_artcile.htm模板中使用
      {dede:list pagesize=’12′ orderby=’weight’ orderway=’asc’}
      2,然后修改include目錄下的arc.listview.class.php
      查找else if($orderby==”lastpost。。。
      在下面補充
      else if($orderby==”weight”) { $ordersql = ” order by arc.weight $orderWay”; }
      3,同樣是這個文件,查找“if(ereg(‘hot|click|lastpost’,$orderby))”改為:
      if(ereg(‘hot|click|weight|lastpost’,$orderby))
      上面三個步驟,即可實現列表頁內容按權重排序,越小越靠前。
      僅供大家學習參考,希望以上內容對大家有所幫助 。

      查看更多 DedeCms教程  織夢模板  織夢DedeCms視頻教程  織夢dedecms專題

      來源:模板無憂//所屬分類:DedeCms教程/更新時間:2020-05-22
      相關DedeCms教程