【发布时间】:2011-03-04 15:37:58
【问题描述】:
我正在开发一个 Drupal 7 网站。我需要一些页面的自定义布局。所以我创建了 page--customContentTypeName.tpl.php 文件,它完美地解决了问题。
问题是,我需要在页面 tpl 中显示一些字段。下面的代码在节点 tpl 中运行良好,但是页面 tpl :/
<?php print $content['field_images']['#items']['0']['filename']; ?>" />
如何将自定义字段调用到页面 tpl?
感谢帮助!非常感谢!!
** 排序 **
自定义字段编辑...这里是教程视频:http://lin-clark.com/blog/intro-drupal-7-theming-fields-and-nodes-templates#comment-54
【问题讨论】:
标签: drupal cck drupal-7 drupal-theming