文章再次编辑时间:2019年1月30日
在include下面找到arc.listview.class.php打开
修改:排序方式添加如下
else if($orderby == "weight") {
$ordersql = " order by arc.weight $orderWay";
}
在找到if(preg_match('/hot|click|lastpost/', $orderby))
改成
if(preg_match('/hot|click|lastpost|weight/', $orderby))
添加weight字段
前端文章调用方法:
isweight="Y" orderby='weight' orderway='asc'
添加如上三个参数既可!
需要在前端标签中加入isweight="Y" 既可直接调用,调用方法同上。