dedecms织梦文章按权重排序
发布时间:2021-03-31 03:30:21 所属栏目:CMS系统 来源:互联网
导读:dede:arclist 这个标签官方程序是支持按权重调用文章的,正确的标签写法是这样的 {dede:arclist typeid=1 row=8 isweight=y} lispan权重:[field:weight /]/spana href=[field:arcurl /][field:title /]/a/li{/dede:arclist} 列表要按权重排序的话,需要打开
dede:arclist 这个标签官方程序是支持按权重调用文章的,正确的标签写法是这样的 {dede:arclist typeid='1' row='8' isweight='y'} else if($orderby=="lastpost") { $ordersql = " ORDER BY arc.lastpost $orderWay"; } 在它的下面加上 else if($orderby == 'weight') { $ordersql = " ORDER BY arc.weight $orderWay"; } 继续找到 /hot|click|lastpost 改成 /hot|click|lastpost|weight (编辑:甘南站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |