加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > CMS系统 > Dedecms > 正文

dedecms织梦模板文章按权重排序的标签教程

发布时间:2020-12-14 04:36:21 所属栏目:Dedecms 来源:网络整理
导读:dede:arclist 这个标签官方程序是支持按权重调用文章的,正确的标签写法是这样的 {dede:arclist typeid='1' row='8' isweight='y'} else if($orderby=="lastpost") { $ordersql = " ORDER BY arc.lastpost $orderWay"; } 在它的下面加上 else if($orderby ==
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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读