Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
27 Jun 2011 at 05:03 UTC
Updated:
24 Jun 2015 at 20:13 UTC
Jump to comment: Most recent
Comments
Comment #1
jhodgdonCan you be more specific about which information is wrong or misleading please? This issue report is not very helpful as it is.
Comment #2
maxxer commentedapologies for not being more helpful:
render($content['field_example']).$content variable does not appear to be exposed to this template.
print_r($content) returns nothing, for example.
$user->field_example has a variable $field_example defined.Here I find the doc to be misleading. $user is exposed to user-profile.tpl.php but it contains variables related to currently logged in user.
field variables returned from $user do not apply specifically to the currently viewed user profile page unless the user happens to be viewing their own profile while logged in.
Comment #3
jhodgdonOK. Someone needs to redo this documentation. It's apparently all wrong. See also the two comments posted at http://api.drupal.org/api/drupal/modules--user--user-profile.tpl.php/7
Needs to be fixed in d8 first, then backported.
Comment #4
jhedstromThis file has been removed, but it was also apparently already fixed over in #1123092: user-profile.tpl.php doc has confusing/misleading first paragraph.