Webform 的 Drupal 节点模板

发布于 2024-09-15 23:09:47 字数 435 浏览 1 评论 0原文

我试图给我的网络表单节点一个可读的名称,以便更容易查找和编辑。 我可以使用我创建的名为“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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

物价感观 2024-09-22 23:09:47

什么版本的网络表单?最新的 Webform 2.x 和 3.x 应支持 TPL 的使用。

What version of webform? The latest Webform 2.x and 3.x should support the use of TPLs.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文