关键字:Discuz 模板 调用 语法 来源:http://blog.livebaby.cn 模板的相互调用语法 比如在某个模板中,想调用另一个模板中的内容,可以用下面的语句: {template xxx} 假设,建立了一个新模板名字叫 "new.htm" ,在后台模板编辑时只会显示为 "new",需要在 index 中调用它,那么就在index 中适当位置加入 {template new} 那么就会自动代用它。 相关实例:index 模板中,最顶有 {template header},最底有 {template footer} 相关疑问: 那么在这个 new 模板中需要有 <html><body></body></html> 吗? 不需要的!想要显示什么,就写什么,因为它只是整个网页的一部分! <html><body></body></html> 都已经在header和footer模板中了。 本文永久地址: http://www.livebaby.cn/blog/u/meil/archives/2009/Discuz-template-01.html |