帝国cms7.5标签模板+万能标签

标签模板+万能标签

一、标签模板常用的是万能标签,标签模板ID对应的就是模板的ID


[ecmsinfo]栏目ID,显示条数,标题截取数,是否显示栏目名,操作类型,标签模板ID,只显示有标题图片[/ecmsinfo]

二、子栏目导航标签模板

页面模板内容(*)


[!--empirenews.listtemp--][!--empirenews.listtemp--]

列表内容模板(list.var) (*)


[!--classname--]

三、标题列表模板

页面模板内容(*)


[!--empirenews.listtemp--][!--empirenews.listtemp--]

列表内容模板(list.var) (*)


  • [!--title--]
  • 四、图片+标题+简介

    页面模板内容(*)

    
    [!--empirenews.listtemp--][!--empirenews.listtemp--]

    列表内容模板(list.var) (*)

    
    $titlepic='';
    if($r[titlepic])
    {
    $titlepic='[!--title--]';
    }
    $listtemp='
    
  • '.$titlepic.'

    [!--title--]

    [!--smalltext--]

    [!--newstime--][!--onclick--] 阅读更多
  • ';

    五、循环子栏目标签

    页面模板内容(*)

    
    
      

    更多[!--the.classname--]

      [!--empirenews.listtemp--] [!--empirenews.listtemp--]

    列表内容模板(list.var) (*)

    
    
  • [!--title--] [!--newstime--]
  • 六、相册以及显示数量

    页面模板内容(*)

    
    [!--empirenews.listtemp--][!--empirenews.listtemp--]

    列表内容模板(list.var) (*)

    
    $fr=$empire->fetch1("select * from {$dbtbpre}ecms_photo_data_{$r[stb]} where id='$r[id]'");
    $mynum=count(explode(egetzy("rn"),$fr[morepic]));
    $listtemp='
    
  • [!--title--]

    [!--title--]

    '.$mynum.' //'.$mynum.' 为图片集数量
  • ';

    发表回复

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