一聚教程网:一个值得你收藏的教程网站

热门教程

织梦系统自定义模型全局调用方法标签

时间:2022-06-25 16:37:28 编辑:袖梨 来源:一聚教程网


首先修正官方版的一个bug。/include/taglib/arclistsg.lib.php第76行

 代码如下 复制代码

if(!empty($channelid)) $gquery = "SELECT addtable,listfields FROM `#@__channeltype` WHERE id='$channelid' ";
else $gquery = "SELECT ch.addtable,listfields FROM `#@__arctype` tp LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype WHERE id='$typeid'";

更改为

 代码如下 复制代码

if(!empty($channelid)) $gquery = "SELECT addtable,listfields FROM `#@__channeltype` WHERE id='$channelid' ";
   else $gquery = "SELECT ch.addtable,listfields FROM `#@__arctype` tp LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype WHERE tp.id='$typeid'";

热门栏目