帝国CMS列表ref="https://xwenw.com/tag/%e9%a1%b5%e9%9d%a2%e6%a8%a1%e6%9d%bf" target="_blank">页面模板如何调用标题分类ID?
方法1:标签调用!–self.classid–]方法2:系统变量&l;?=$GLOBALS

帝国CMS列表页面模板 如何调用标题分类ID?

方法1:标签调用

  • [!--self.classid--]
  • 方法2:系统变量

  • <?=$GLOBALS[navclassid]?>
  • <?=$navclassid?>
  • 方法3:$class_tr变量

  • <?=$class_tr[$GLOBALS[navclassid]][typeid]?>
  • <?=$class_tr[$navclassid][typeid]?>
  • 方法4:SQL调用

  • <?php $_type=$empire->fetch1("select * from {$dbtbpre}enewsinfotype where typeid='$GLOBALS[navclassid]'");?>
  • <?=$_type[typeid]?>
  • 声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。