讯睿CMS问答:请问推荐为如何调用文章所在栏目试了半天也没弄出来

讯睿CMS问答:请问推荐为如何调用文章所在栏目试了半天也没弄出来

2024-10-12 XunRuiCMS Sincere

问题:

请问推荐为如何调用文章所在栏目,试了半天也没弄出来。

答案:

show.html

{$cat.name}

【王兴业】1楼

在首页和列表页呢,文章页面知道用这个

列表{dr_cat_value($t.catid, "name")}

万能的手册找到方法了

首页推荐位置用{dr_cat_value('模型', $t.catid, 'name')}

首页列表需在field加catid才生效{list action=module module=模型 field=catid .......}

@tianfuxi:设为满意答案