Active
Project:
Content Profile
Version:
6.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Oct 2009 at 10:52 UTC
Updated:
20 Apr 2012 at 19:06 UTC
Hello,
I was wondering if anyone knows if it is possible to add the content profile field (ie first name) to the $user object so that it can be printed anywhere such as on page.tpl.php
I would appreciate the support!
Thank you
Comments
Comment #1
jeffschulerYou can use theme preprocess functions to make data accessible to your theme templates.
A couple good starting places are:
Comment #2
mttjn commentedi would like to know how to add content profile fields to $user object too...
anyone?
@jeffschuler: can you explain, please?
Thanks in advance!
Comment #3
Lehtóri commentedsomething like this should work:
Comment #4
KingMoore commentedTry this: