织梦默认情况下是没有开启weight排序的需要修改arclist.lib.php 1、 在织梦系统中找到以下目录include aglib中的arclist.lib.php文件并打开,大约在74 、75行找到: 1 // arclist是否需要weight排序...
织梦默认情况下是没有开启weight排序的需要修改arclist.lib.php
1、 在织梦系统中找到以下目录include aglib中的arclist.lib.php文件并打开,大约在74 、75行找到:
2 |
$isweight = $ctag ->GetAtt( 'isweight' ); |
|
把这行修改为:
1 |
$weight = $ctag ->GetAtt( 'weight' ); |
|
2、大约在327行找到
03 |
if ( $orderby == 'hot' || $orderby == 'click' ) $ordersql = " ORDER BY arc.click $orderWay" ; |
04 |
else if ( $orderby == 'sortrank' || $orderby == 'pubdate' ) $ordersql = " ORDER BY arc.sortrank $orderWay" ; |
05 |
else if ( $orderby == 'id' ) $ordersql = " ORDER BY arc.id $orderWay" ; |
06 |
else if ( $orderby == 'near' ) $ordersql = " ORDER BY ABS(arc.id - " . $arcid . ")" ; |
07 |
else if ( $orderby == 'lastpost' ) $ordersql = " ORDER BY arc.lastpost $orderWay" ; |
08 |
else if ( $orderby == 'scores' ) $ordersql = " ORDER BY arc.scores $orderWay" ; |
09 |
else if ( $orderby == 'rand' ) $ordersql = " ORDER BY rand()" ; |
10 |
else if ( $orderby == 'weight' ) $ordersql = " order by arc.weight asc" ; |
12 |
else $ordersql = " ORDER BY arc.sortrank $orderWay" ; |
|
Pbootcms问题解决
请点击在线联系我们【点击咨询解决问题】 如果您有任何Pbootcms问题,我们将免费为您写解决教程!