Warning: is_readable(): open_basedir restriction in effect. File(C:\wwwroot\hegu.app/wp-content/plugins/C:\wwwroot\hegu.app\wp-content\plugins\wp-china-yes/languages/wp-china-yes-zh_CN.mo) is not within the allowed path(s): (c:/wwwroot/hegu.app/;C:/Windows/Temp/;C:/Temp/;C:/BtSoft/temp/session/) in C:\wwwroot\hegu.app\wp-includes\l10n.php on line 783
修改织梦cms使其支持主页显示副栏目内容 - 何故

修改织梦cms使其支持主页显示副栏目内容

2021年11月17日 5070点热度 0人点赞 1条评论

将/include/taglib/arclist.lib.php第306-307行注释掉,粘贴以下代码

 

// if($CrossID=='') $orwheres[] = ' arc.typeid IN ('.GetSonIds($typeid).')';
// else $orwheres[] = ' arc.typeid IN ('.GetSonIds($typeid).','.$CrossID.')';
//修改支持副栏目主页显示 开始
if($CrossID=='') $orwheres[] = ' arc.typeid IN ('.GetSonIds($typeid).') or arc.typeid2 IN ('.GetSonIds($typeid).') ';
else $orwheres[] = ' arc.typeid IN ('.GetSonIds($typeid).','.$CrossID.') or arc.typeid2 IN ('.GetSonIds($typeid).','.$CrossID.')';
//修改支持副栏目主页显示 结束 

大魔王

这个人很懒,什么都没留下

文章评论

  • 魔王

    可以啊

    2022年3月29日