网上一些方法是提出修改/include/taglib/arclist.lib.php中的
$isweight = $ctag->GetAtt('isweight');
为
$weight = $ctag->GetAtt('weight');
但我如此修改后不见效果,后索性直接改为:
//$isweight = $ctag->GetAtt('isweight');
$isweight = 'Y';//直接赋值
此为第一处修改,第二处在(查找$ordersql):
加入如下一句
else if($orderby == 'weight') $ordersql = " ORDER BY arc.weight $orderWay";
本文介绍了一种在Emlog系统中实现文章权重排序的方法。通过修改核心文件中的代码,可以直接设置权重并按照权重进行文章排序,以此来提高特定文章的展示优先级。
3万+

被折叠的 条评论
为什么被折叠?



