讯睿CMS问答:怎么在首页调用单页栏目

讯睿CMS问答:怎么在首页调用单页栏目

2024-06-08 XunRuiCMS Sincere

问题:

怎么在首页调用单页栏目?


image

模板标签代码:

{page site=3 num=1 id=14} {$t.name}{$t.name}{$t.content}MORE{/page}

无效,没有结果请问哪里写错了

参考的是:https://www.xunruicms.com/doc/423.html

站点ID:3,调用单页栏目ID:14

答案:

这个是自定义页面插件吗?

是的

{page site=3 num=1 id=14}{$t.name}{$t.name}{$t.content}MORE{/page} {$debug}

看看debug(标签诊断器)结果

如果你是当前站点

site=3 num=1

这2个你去掉看看!

@小黄人 18html.com:谢谢 你们都是好人