在任何页面内容上显示自定义字段.Drupal 7


Display Custom Field on any page content. Drupal 7

我为用户配置文件创建了一个自定义字段。这些是settings- field_test Integer Text字段。

如何通过CMS在任何页面上显示此自定义字段?

如果它附加到用户实体,则可以将其插入到page.tpl.php:

<?php print render($user_profile['field_test']); ?>