Hi,
I'm building a site using content profile and reading Theming a Specific CCK Content Type helped me understanding how to theme my profiles.
Now I'd like to use some parts of my profiles in a block to display author information based on his profile. So instead of showing a big picture I may show a smaller one and only a few fields of his profile.

What would be the recommended way to achieve this ? How can I create a template and use it only with a call of a function on a php block ?
I'm a little confused with the content_profile_theme and content_profile_display_view functions. Anybody to enlight me ?
Thanks a lot.

Comments

As If’s picture

I'm new to the content_profile module, but it is CCK under the hood, so...

The typical CCK/Views -based approach would be: (1) create a block view using all the fields you want including the pic, (2) use the views theme wizard to create the tpl.php code and the matching phptemplate function for that view, and (3) assign that block to the desired region. To achieve the "smaller picture" effect, you can either force the image dimensions in the HTML of the tpl.php file (which may cause some distortion) or you could use imagecache and call the presized imagecached version of the pic. HTH.