- A+
所属分类:织梦dedecms建站
dede:arclist 这个标签官方程序是支持按权重调用文章的,正确的标签写法是这样的

HTML
{dede:arclist typeid='1' row='8' isweight='y'} <li><span>权重:[field:weight /]</span><a href="[field:arcurl /]">[field:title /]</a></li>{/dede:arclist}
复制
列表要按权重排序的话,需要打开 \include\arc.listview.class.php 找到
PHP
else if($orderby=="lastpost") {
$ordersql = " ORDER BY arc.lastpost $orderWay";}
复制
在它的下面加上
PHP
else if($orderby == 'weight') {
$ordersql = " ORDER BY arc.weight $orderWay";}
复制
继续找到
PHP
/hot|click|lastpost
复制
改成
PHP
/hot|click|lastpost|weight
复制
- 云秀seo的微信
- 云秀seo的微信扫一扫
-
- 我的微信公众号
- 我的微信公众号扫一扫
-