View Single Post
  #1   IP: 106.110.148.226
Old 2015-10-09, 08:52 PM
James James is offline
初级会员
 
Join Date: 2008-04-12
Posts: 1
James 现在声名狼藉
Default 如何查看帝国CMS中navclassid这个变量的说明?

程序扩展变量说明:通过这些变量可实现各种更复杂的系统.
1、列表模板变量说明:
当前栏目id:$navclassid或$GLOBALS[navclassid]
通过这个变量可以输出这个栏目id的所有数据(如:select * from phome_enewsclass where classid='$GLOBALS[navclassid]')

2、内容模板变量说明:
字段值数组:$navinfor

调用方法:$navinfor[字段名],比如要显示"信息ID字段",那在模板里用:<?=$navinfor[id]?>即可输出(要开启模板支持程序代码)
Reply With Quote