Closed (duplicate)
Project:
Real Name
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2009 at 12:55 UTC
Updated:
8 Nov 2010 at 22:18 UTC
I have a use case where there are 2 different content profiles node types, both of which are using field_name field. Since you have to select only one profile(node) type to choose the realname fields from, real names are showing for only users with the profile type that is chosen.
Is there anyway to get this working for all profile types?
Thanks.
Comments
Comment #1
nancydruDo you have any clue how? Are there other modules that access multiple types?
Comment #2
nancydru#356893: Possibility to have different RealName rules when using ProfileContent
Comment #3
smoothk commentedHi there, NancyDru!
I seem to have the same issue and I'm asking for a suggestion: following this post here
http://drupal.org/node/313341#comment-1460184
I managed to have multiple content profiles for different roles using Content Profile, Auto Assign Role and the patch riverfr0zen put together.
I have some roles with Name and Surname, and others with Organization Name.
Right now it's possible to select just one Content Profile content type, while in my case would be necessary to have a multiple select - check boxes instead of radio buttons - and then choose which fields for each content type to use.
How hard you think it'll be to make that happen? Where should I look?
Comment #4
Balbo commentedany news here?
Comment #5
jannol commentedI have 2 content profiles set up, member_profile and company_profile and they have different roles
in member_profile I have field_first_name and field_last_name
in company_profile I use a field as the existing field_first_name but labeled as Company name
in realname.module after line 743 (I think my version is unchanged, realname.module,v 1.4.4.57 2009/10/13 17:48:06 nancyw) I added one line of code that checks if my user is of role company and if so, It simply uses the existing field in my company_profile content. I also replaced the pattern to use %1 so it only uses the first_name field.
I am quite new to drupal so I have no idea how bad approach this is, nor have I yet tested it thoruoghly.
org
edited
Comment #6
jannol commentedOk previous didn't work all they way.
In order to get more stuff working I have removed pattern_saved since pattern_saved doesn't seem to matter to if there are %1 and %2 or just %1 or maybe there is permissions stuff to consider, I haven't got there yet so I allow company role to both view and edit own field_last_name even though there is no such fields in company_profile content.
and then in realname_content_profile.inc
I changed
to
And now I have the Company name showing in both pages/nodes/private msg
I know my "solution" might be ugly hacks but in order to be able to write more later for either me or anyone else I try to find out what to do.
Please let me know if I am on thin ice?!
Happy realnaming for now, I'll be back :-P
Comment #7
nancydruPlease move the discussions to the active issue, this one is a duplicate.