DedeCMS织梦文章按照权重排序的办法
发布时间:01/21 来源:未知 浏览:
关键词:
else if($orderby == 'scores') $ordersql = " ORDER BY arc.scores $orderWay";
在背面加上一句:else if($orderby == 'weight') $ordersql = " order by arc.weight desc";//要是没有特定设置排序则按权重越大越靠前排序 2.修改后台模板,打开\dede\templets\article_add.htm和article_edite.htm 寻到”越小越靠前“改为:”越大越靠前“
改完后从新生成首页,即可按权重越大越靠前来排序了。