織夢 後臺 權重 排序 不生效
1.
dede/album_edit.php
152行到172行 加入
weight='$weight',
2.
include/arc.listview.class.php
查找
else if($orderby=="lastpost") { $ordersql = " ORDER BY arc.lastpost $orderWay";} ,
大概在768行
在下面補充
else if($orderby=="weight") { $ordersql = " order by arc.weight $orderWay"; }
3.
同樣是這個文件,
查找
“if(preg_match('/hot|click|lastpost/', $orderby))”
改爲:
if(preg_match('/hot|click|weight|lastpost/', $orderby))
上面三個步驟,即可實現列表頁內容按權重排序,越小越靠前。
https://jingyan.baidu.com/article/93f9803f0efb98e0e46f552c.html