Could you put the first, middle and last name to the $user-object?
macco - December 7, 2007 - 01:34
| Project: | Fullname field for CCK |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Jump to:
Description
Hello,
I guess, that most people will use the fullname-field in nodeprofiles.
Would it not be great for this people to acces this piece of information in the $user-object ? :)
I think this would be very useful for social communities.
Regards,
Marco

#1
Could you explain further? Perhaps give some examples? As with any cck field, it is not difficult for modules to access the data stored in them and then reuse them in creative ways. For example, my handshake module collects various kinds of data from cck fields and then allows users to share them with each other on a case-by-case basis. So I'm currently failing to see the advantage of adding to the overhead of the user object. It may be that module designers (who would take advantage of this data in the user object anyway) just need to be educated as to how to get data out of a cck field.
#2
Thanks for your quick reply.
You could use it as a replacement for the username. In my community for example, users still have an username, but are forced to tell their realname and in many cases the UI "talks" to them with their fullname and I think it is somewhat akward to load the whole nodeprofile (which is very big in my case) for that.
Regards,
Marco
#3
I don't have time to do this right now, but it seems reasonable. If you'd like to code this and make a patch, I'd be happy to look it over and include it if I like how you do it. Otherwise, I'm postponing this feature.
#4
I see what I can do, but I can't promise anything. My knowledge about programming is
limited.
Regards,
macco