Webform 的 Drupal 节点模板
我试图给我的网络表单节点一个可读的名称,以便更容易查找和编辑。 我可以使用我创建的名为“webform-form-12.tpl.php”的模板和主题,但我想使用类似“node-webform-form-athlete-of-the-month_submit-your-”的东西运动员.tpl.php”。我给这个网络表单的路径是“本月运动员/提交您的运动员”。它不适用于我尝试过的任何名称。我正在使用节点预处理函数来添加模板文件名。到目前为止我已经尝试过这些: node-webform-athlete-of-the-month_submit-your-athlete.tpl.php 节点-webform-form-athlete-of-the-month_submit-your-athlete.tpl.php 这一个:“node-athlete-of-the-month_submit-your-athlete.tpl.php”使用模板,但表单不存在。
I'm trying to give my webform node a readable name to make it easier to find and edit.
I'm able to use the template I created called "webform-form-12.tpl.php" and theme that, but I want to use something like "node-webform-form-athlete-of-the-month_submit-your-athlete.tpl.php". The path I gave this webform is "athlete-of-the-month/submit-your-athlete". It's not working with any names I've tried. I'm using a node preprocess function to add template file names. I've tried these so far:
node-webform-athlete-of-the-month_submit-your-athlete.tpl.php
node-webform-form-athlete-of-the-month_submit-your-athlete.tpl.php
This one: "node-athlete-of-the-month_submit-your-athlete.tpl.php" uses the template but the form is not there.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
什么版本的网络表单?最新的 Webform 2.x 和 3.x 应支持 TPL 的使用。
What version of webform? The latest Webform 2.x and 3.x should support the use of TPLs.