好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

帝国cms内容页调用栏目缩略图的可行方法_帝国

帝国ecms6.0后已经无法用[!--class.classimg--]直接调用栏目缩略图了,现在只有用灵动或者万能标签才能调用,实现代码如下

帝国ecms6.0后已经无法用[!--class.classimg--]直接调用栏目缩略图了,5.1以前的能行,现在只能在列表页能用[!--class.classimg--]调用缩略图标签,现在只有用灵动或者万能标签才能调用,调用代码如下

网上的代码为:

复制代码

代码如下:


[e:loop={"select classimg from phome_enewsclass where classid='$GLOBAL[navclassid]'",1,24,0}]
<?=$bqr[classimg]?>
[/e:loop]


测试之后修改如下,可以正常使用

复制代码

代码如下:


[e:loop={"select classimg from phome_enewsclass where classid=$navclassid",1,24,0}]
<?=$bqr[classimg]?>
[/e:loop]

查看更多关于帝国cms内容页调用栏目缩略图的可行方法_帝国的详细内容...

  阅读:85次