帝国CMS循环调用栏目标签和子栏目标签
程序员文章站
2022-06-21 16:44:56
帝国cms循环调用栏目标签和子栏目标签
//bclassid='66'这个66可以设置为0就是调用根目录
[e:loop={"select classid,c...
-
- query("select classid,classname from ".$dbtbpre."enewsclass where bclassid=".$bqr[classid]." order by myorder,classid desc limit 11"); while($classr=$empire->fetch($newsclass)) { $classrurl=sys_returnbqclassname($classr,9); //取得子栏目地址 ?>
- [/e:loop]
上面是栏目和子栏目都能调用出的情况,但是如果是封面、列表、内容页想调用当前栏目下的怎么办呢?
那就这么写:
[e:loop={"select classid, classname, classpath from `[!db.pre!]enewsclass` where bclassid='$bclassid' order by `classid` desc ",5,24,0,0,0}]
- [/e:loop]
帝国cms循环调用栏目标签和子栏目标签
//bclassid='66'这个66可以设置为0就是调用根目录
[e:loop={"select classid,classname,islast from {$dbtbpre}enewsclass where bclassid='66' order by myorder,classid asc limit 11",0,24,0}]