I know this can be done with CCK for content, but I don't see a way of creating a profile field that is a node reference for user's profiles. I am using the user_profile.tpl.php template. 4.7.3

Comments

fluitfries’s picture

I have various groups of CCK that I would like to reference to user profiles. For example, each user has an Asset, and I would like that asset to be listed as a link on the User's profile page. The link leads back to the Asset's node.

I think this is possible via nodereference if your original node is a CCK type, but what about if your original node is a Profile?

Thanks for any help.

fluitfries’s picture

It would be even better if I could *list* the referenced node's content on the Profile page instead of just linking to it.

Could I use views to create something that pulls 1/3 as Profile data, 1/3 as Asset1 data, and 1/3 as Asset2 data? I have no idea how to set up such a view if it's possible.

The end result would be a single page view of 3 different nodes' data. The nodes that were used would be dependant on the relationship of the Profile that references an Asset1 and Asset2 node (assigned to that user).

Heh, confused yet?

marcoBauli’s picture

guys you know if there was any progress or solution to this? If not, would you be interested in sharing costs to forge it?

cheers

jonathanwinn’s picture

See this thread...

http://drupal.org/node/146387

jonathanwinn’s picture

Per the problem in my link above, I was able to restrict the "company" nodereference in my "show" content type to only list the "company" nodes that are tied to the user. I did this by using the organic groups module, and making the "company" content type an og default content type. Then in my configuration of the "company" nodereference, under "Advanced - Nodes that can be referenced (View)", I chose the view "og_my". I think this functionality is enabled by the "view field" module, but I can't remember exactly.

So, this was successful in limiting the list only to the groups that the user is subscribed to. However, I now have a problem with another view, where I list the current shows. I'd like to expose a filter that will allow the user to search the shows by company (or "group" in my case). Using the same nodereference to show the company name of the show on the table, my "sort by company" filter is now limited only to groups that the user is subscribed to, when in this instance, I want the user to be able to search by any/all companies. I can't figure out a way to do this elegantly without adding yet another nodereference in my show content type that, in this case, would not be restrictive. This would leave my users who post shows confused, and may result in some jumbled listings (like the two nodereferences not matching). So I can either give up my "sort by company" ambition, or try to figure out another way. Any recommendations are most welcome.

Sorry if this doesn't relate directly to your issues, but maybe you could figure out some way to solve your problem with organic groups. The way I see it, adding nodereference to user profiles is still an absolute must, and there should be a way to create custom filters in Views (which I haven't found through UI, at least). Anyway, as you can tell, I'm a total code luddite, so I apologize again if this is irrelevant or just plain stupid.

jonathanwinn’s picture

deleted

Walterh’s picture

I'm using Drupal 5.1. I've made a view (page) that list all the users and now only the username can be linked to the user profile. This is done with the handler "themed userlink".

Is it possible to let an other field also linked to the user profile? I'll realy want to do this but I connot find out how?

-----------------------------------------------
http://www.offstage.nl