何故

  • 首页
  • Office技巧
  • Linux
  • Python
  • 关于
  1. 首页
  2. 懒癌日记
  3. 正文

解决dedecms模板封面页副栏目不显示的问题

2021年9月14日 2846点热度 0人点赞 0条评论

在dedecms 5.7 sp2测试通过
打开/include/taglib/arclist.lib.php
找到以下代码(第211行左右):
if($CrossID=='') $orwheres[] = ' arc.typeid in ('.GetSonIds($typeid).')';
else $orwheres[] = ' arc.typeid in ('.GetSonIds($typeid).','.$CrossID.')';
改成
if($CrossID=='') $orwheres[] = ' typeid in ('.GetSonIds($typeid).') or typeid2 in ('.GetSonIds($typeid).')';
else $orwheres[] = ' typeid in ('.GetSonIds($typeid).','.$CrossID.') or typeid2 in ('.GetSonIds($typeid).','.$CrossID.')';

标签: 暂无
最后更新:2021年9月14日

大魔王

如你所见,有些才华横溢出了屏幕

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2024 何故. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

滇ICP备20001921号-1

滇公网安备53262102000532号