117.info
人生若只如初见

LECMS的栏目页和内容如何获取当前栏目信息

最近在弄弄lecms的模板,需要在模板中调用当前栏目的信息,查找了下教程资料,特此记录。

htm标签数组:

栏目数组:$cfg_var

栏目名称:{$cfg_var[name]}
栏目链接:{$cfg_var[url]}

更多信息可以直接打印查看:
{php}
print_r($cfg_var);
{/php}

通过print_r($cfg_var);打印出的数组结构如下:
Array (

[cid] => 10

[mid] => 2

[type] => 0

[upid] => 0

[name] => 手机游戏

[alias] => shoujiyouxi

[pic] => /static/img/nopic.gif

[intro] =>

[cate_tpl] => article_list.htm

[show_tpl] => article_show.htm

[count] => 0

[orderby] => 0

[seo_title] =>

[seo_keywords] =>

seo_description] =>

[contribute] => 0

[place] => Array ( [0] => Array ( [cid] => 10 [name] => 手机游戏 [url] => /shoujiyouxi/ ) ) [topcid] => 10 [table] => article [haspic] => 0 [url] => /shoujiyouxi/ )

赞(0)
未经允许不得转载:117笔记 » LECMS的栏目页和内容如何获取当前栏目信息
分享到