网上不少帖子说要改 什么php文件才能开启,改了也没用。 然后我找到下面这个方法,超级简单实用{dede:arclist titlelen='38' flag='h' noflag='a'isweight='y'orderby='weight'}<li><span>[[field:typelink/]]</span><a href="[field:arcurl/]">[field:title/]</a><div class="c2time">[field:pubdate function=MyDate('y-m-d',@me)/]</div></li>{/dede:arclist}
红色部分就是开启 weight排序,再加上orderby='weight',就OK了。另外很多童鞋使用arclist标签时,想按照权重越大越靠前来排序,则需要小动一下arclist.lib.php文件,方法如下:打开include aglibrclist.lib.php大概在572行$orderWeight = list_sort_by($orderWeight, 'weight', 'asc');修改为(红色部分)$orderWeight = list_sort_by($orderWeight, 'weight', 'desc');就OK了。完整的表达方法如下{dede:arclist row=1 titlelen='80' isweight='y' orderby='weight'}{/dede:arclist}