Hi everybody,

I'm a newbie in Drupal but I have some knowledge of program websites.

I installed Drupal 7 a few months ago and updated it to core 7.39 (I think two weeks ago). After installing I added some modules like the module 'Profile2' (other modules: 'References', 'Field References', and others). I created a profile type (named 'Group-Profile') and fields (like 'Fullname' (text field)) in this type.

Then I created a new content type named Publications. In this type I added a new Field ('authors') and set the field type to 'Field Reference' and the widget type to 'Autocomplete text field'. In the next step I enabled the checkbox for 'Fullname' under 'Group-Profile' and 'Entity', 'Value' below 'Granularity' and 'Allow Generell', 'Append Id'. Clicked two times on 'Save setting' and ready.

So, if I add a new Publication and type something into 'authors' not the value like 'Robert Nobody' is referenced. The proposals look like: Fullname (value 1) - Group-Profile [field_gp_fullname: profile2:4].

Is there anyone who can help me to get the value?

Comments

VM’s picture

Consider futureproofing and utilize https://www.drupal.org/project/entityreference instead of the references module.

ronthebiggest’s picture

Thanks for comment. I tryed Entity Reference and as addon Entity Reference Autofill.

But with Entity Reference I don't found a way to reference fields and not only nodes. Is there a way to reference only a specific field in a profile with Entity Reference?

Another Problem I have is to reference more than one field with Entity Reference Autofill. I can reference fields in a node by choosing the node title as 'Entity Reference', so I can fill fields but the values are fixed. If I change the original value, the reference doesn't change.

I hope someone understand what I mean. :) Maybe I made a small mistake, but I don't found it.

VM’s picture