I would like to display Content Profile fields (Full Name, brief bio, etc.) in a node along with the normal node content. I.e., a Article is created, and the author name and bio is displayed as well. I was hoping to do this by using the CCK user reference field. I would like the content creator to be able to simply select a contributing user from a list, and then the Content Profile information will be automatically displayed based on the UID.

How do I do this in content templates? I.e., how do I print a Content Profile field (like "field_display_name") based on the selection of a particular user?



fago’s picture

Status: Active » Fixed

hm, use a node reference field instead - you can use auto nodetitle to let it have right titles or a view. Then select a option to show the content of the referenced node. I don't know if there is such an option, but that's the way it would work easily.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

KHofmeyer’s picture

Has anyone figured out a way of doing this. I have tried node reference but don't see how to make it work?

jjemmett’s picture

Status: Closed (fixed) » Active

I would like to know how to do this as well. I did many searches on google and the various drupal user groups, but there is no current solution.

dogboy72’s picture

I think the http://drupal.org/project/viewfield module would do this pretty easily. Add the viewfield to the content types that need a bio and pass %author or %nid to a view to extract whatever field you want from the user's content profile.

I'm going to try this in a few days - I let you know if it works. I can't imagine why it wouldn't.

sbydrupal’s picture

Dogboy72, Did it work? thanks

dogboy72’s picture

Yes it did. I am not using it yet because the author's bios have not been completed.

alphex’s picture

Of course viewfield is still in Dev.

/me dives in

I need a solution to this also.

alphex’s picture

viewfield white screened my install... maybe I'll wait a while for that module...

ace11’s picture

Old thread but any solutions? Would like to know how to do this in D7.

KrypticBit’s picture

Issue summary: View changes

Old thread, but I'm looking to do the same in Drupal 8. Did anyone figure out how to do this with entity references?