Drupal Webform 进入首页模板
我需要向我的 page-home.tpl 添加一个 Web 表单,但我对 Drupal 还很陌生,所以我需要一个非常明确的帮助...
我正在使用 DRUPAL 6 并且我已经创建了 Web 表单。
我想将 Web 表单添加到我的自定义模板中,只需将 php 代码添加到 tpl 文件中即可。我的网络表单 ID 是 id="webform-client-form-20"。
你能帮助我吗 ?
多谢
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最快(不一定是最好)的方法是使用
node_view()
和node_load()
< /a>:最好将其加载到预处理函数中的变量中,而不是直接在主题中输出,但这应该适合您的目的。
The quickest (not necessarily best) way to do it is using a combination of
node_view()
andnode_load()
:You'd be better off loading that into a variable in a preprocess function than outputting it directly in the theme but this should work for your purposes.