By matt.nz on
Hi there,
I'm trying to access some of the user profile variables in my page-user.tpl.php template, but I can't find any documentation on this.
$account isn't available, and it doesn't appear that the _preprocess_page() that is called for nodes gets called at all. However, _preprocess() seems to be called several times, each with different values in $vars['account'].
Can anyone help me out with:
- how I can get the same profile fields I get in the user-profile.tpl.php can be accessed in page-user.tpl.php?
- is there is a theme function that gets called instead of TEMPLATE_preprocess_page?
Much appreciated,
Matt
Comments
what does dsm($vars) give
what does dsm($vars) give you?