修改权重值
找到dede\album_edit.php文件
ctrl + f 搜索 UPDATE #@__archives SET
在下面添加weight=’$weight’, (不要忘记逗号)
dede后台权重的永久修改
再找到include\taglib\arclist.lib.php文件
搜索isweight = $ctag->GetAtt(‘isweight’);
修改成isweight = $ctag->GetAtt(‘isweight=“Y”’);
(前面有个美刀符号不要删掉)
dede后台权重的永久修改
再打开include\arc.listview.class.php文件
搜索//排序方式
添加代码如下
dede后台权重的永久修改
else if(美刀符号orderby == “weight”) { $ordersql = " order by arc.weight $orderWay"; }
(把美刀符号一换)

再将if(preg_match(’/hot|click|lastpost/’, $orderby))
换成if(preg_match(’/hot|click|lastpost|weight/’, $orderby))
dede后台权重的永久修改
打开templets/cms618/list_image.htm
(可能每个人的模板文件名不一样自行查找)
搜索dede:list 添加 orderby=“weight” orderway=“asc”
使其按照权重的序列排序
dede后台权重的永久修改

然后再更行栏目HTML 就OK了
dede后台权重的永久修改

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
  • 2021-06-22
  • 2021-09-09
  • 2022-01-04
猜你喜欢
  • 2022-12-23
  • 2022-01-25
  • 2021-07-18
  • 2021-06-01
  • 2021-08-28
  • 2022-03-08
  • 2021-06-21
相关资源
相似解决方案