帝国cms 列表页循环调用标题分类

循环调用标题分类

列表页循环调用标题分类
须终极栏目下;将栏目进行标题分类

常用代码


fetch($ttids_sql)){
$ttids=explode(',',trim($bqr[ttids],","));
foreach($ttids as $id){
$ttname_sql=sys_ReturnEcmsLoopBq("select tname from [!db.pre!]enewsinfotype where typeid=$id",0,24,0);
while($bqr2=$empire->fetch($ttname_sql)){
?>

    [e:loop={'selfinfo',50,0,0,"ttid='$id'"}]
  • <a href="">
  • [/e:loop]

增加序列号


fetch($ttids_sql)){
$j=0;
$ttids=explode(',',trim($bqr[ttids],","));
foreach($ttids as $id){
$ttname_sql=sys_ReturnEcmsLoopBq("select tname from [!db.pre!]enewsinfotype where typeid=$id",0,24,0);
while($bqr2=$empire->fetch($ttname_sql)){
$j++;
?>

[e:loop={'selfinfo',50,0,0,"ttid='$id'",'id asc'}]
  • <a href="" target="_blank">
  • [/e:loop]

    在需要调用的页面模板里加入以下代码:
    标题分类:

    
    [e:loop={1,10,0,0}]
    <a href=""> <a href="" target="_blank"> 
    [/e:loop]

    发表回复

    您的邮箱地址不会被公开。 必填项已用 * 标注