Hi Everyone,
I'm trying to theme my user profile page in user-profile.tpl.php.
How do I go about theming the field collections in my user-profile.tpl.php that are part of a profile2 user profile?
I'm using...
Profile 2 7.x-1.1
Field Collection 7.x-1.0-beta2
Drupal 7.6
Thanks for reading,
-Tim
Comments
Comment #1
TimG1 commentedHi All,
I figured out a way to do this. Not sure if this is the preferred method, but it's working.
Reading about Drupal Render Arrays really helped me understand what's going on a little better. Also check out the links in the comments in the drupal_render() API docs.
Anyway, I can do something like this to print out my field collection. In my case my field collection is called field_profile_degree.
*EDIT*
Made example a little more clear.
Thanks for reading,
-Tim
Comment #2
faqing commentedCheck here:
http://drupal.org/node/1178260
Comment #3
deggertsen commentedJust referencing this issue for anyone still struggling with this like I was.
#1887428: user-profile.tpl.php won´t get recognized to show my profile2 fields... maybe I´m missing something in the config? Please help.