备忘:dedcmsv5.7 arclist标签使用文章weight字段排序
2013-12-16 16:06
246 查看
网上一些方法是提出修改/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";
$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";
相关文章推荐
- dede文章按权重排序的正确使用方法 (arclist 标签)
- Servlet中使用web.xml标签元素自定义错误页面备忘
- arclist标签在文章页列表页调用所有(全站)栏目最新文章热门文章的方法 [复制链接]
- dede标签:arclist标签使用大全
- jquery如何操作类名相同的一组标签(文章后有结合weUI使用的实际例子)
- phpcms v9使用GET调用指定id文章内容、页面数据方法(get标签什么方法)
- 使用jQuery tag handler开发一个带有标签功能的文章发布系统
- sql标签中使用标签变量以及文章的链接-织梦CMS
- 织梦DEDE CMS文章列表arclist标签大全
- 博为峰JavaEE技术文章 ——MyBatis <where>标签使用方法
- 文章列表调用标签(arclist)
- dedecms在搜索结果页面中不能调用arclist标签和自定义宏标记的使用
- 织梦arclist标签无法调用副栏目文章的解决办法
- dede标签:arclist标签使用大全
- DEDE arclist标签无法调用副栏目文章的解决办法arclist标签调用
- dedeCMS使用list标签调用文章日期的方法
- PHPCMS使用get标签获取文章列表过滤重复标题并实现分页
- 使用jQuery tag handler开发一个带有标签功能的文章发布系统
- dede标签:arclist标签使用大全
- dedecms搜索页面不能使用arclist等标签的解决方法