Drupal 视图 $fields 变量无法显示“行样式输出”的任何输出在主题中
我创建了一个视图,它将显示特定节点的输出。
我的视图名称是 test_view
。当我在 views-view-fields--test-view.tpl.php
文件中编辑时,它找不到 $fields
。
再次编辑时views-view-fields--.tpl.php
,views-view-fields--page.tpl.php
,views-view-fields--page-1.tpl.php
,views-view-fields--test-view.tpl.php
,views-view-fields--test-view--page.tpl.php
,views-view-fields--test-view--page-1.tpl.php
文件,那么它也找不到 $fields
变量。 但是当我编辑 views-view-fields.tpl.php
文件时,发现 $fields
变量。
我找不到这个是什么问题?
需要任何建议请...
I have created a view that will display the output of a specific node.
My view's name is test_view
. When i editing in views-view-fields--test-view.tpl.php
file then it can't find $fields
.
Again when editing
views-view-fields--.tpl.php
,views-view-fields--page.tpl.php
,views-view-fields--page-1.tpl.php
,views-view-fields--test-view.tpl.php
,views-view-fields--test-view--page.tpl.php
,views-view-fields--test-view--page-1.tpl.php
files then it also can't find $fields
variable.
But when I'm editing views-view-fields.tpl.php
file then $fields
variable is found.
What is the problem that I can't find that?
Need any kind of suggestions please...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
views-view-fields.tpl.php
不是您可以通过创建更具体的文件名来覆盖的模板文件之一。请参阅我的类似问题 https://drupal.stackexchange.com/questions/5412 /覆盖-views-view-fields-tpl-phpviews-view-fields.tpl.php
is NOT one of the template files that you can override by creating a more specific file name. See my similar question at https://drupal.stackexchange.com/questions/5412/overriding-views-view-fields-tpl-php