网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   帝国Cms (https://www.0058.net/forumdisplay.php?f=72)
-   -   如何查看帝国CMS中navclassid这个变量的说明? (https://www.0058.net/showthread.php?t=5295)

James 2015-10-09 08:52 PM

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

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

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


All times are GMT +8. The time now is 06:06 AM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.