Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我为用户配置文件创建了一个自定义字段。这些是 settings-field_test 整数文本字段。
如何通过 CMS 在任何页面上显示此自定义字段?
如果它附加到用户实体,您可以将其插入 page.tpl.php:
<?php print render($user_profile['field_test']); ?>