Quantcast
Channel: Active questions tagged users - Drupal Answers
Viewing all articles
Browse latest Browse all 468

Using Profile 2 with Entity Reference--How to display the user name and not the "Profile Name"

$
0
0

I've reviewed the threads similar to this, and can't seem to find a definitive answer. I have a Content Type in Drupal 7 where I want to be able to associate multiple users to a content item. For example, I have a "Music Ensemble" content type, and I want the ensemble leader to be able to select all of their ensemble members from the list of user profiles.

I've been through all the steps to configure a view with the Entity Reference Widget, and add / configure the Entity Reference field on my content type. When I go to create a content item, the View loads, displays the correct profile fields and allows me to select users.

However, when I submit the view form and return to the content UI, I get the following:

ensemble widget

The "Main profile" text is displayed for every member I select. What I really want to display on the content item is the user's name from their profile.

I can't seem to find a way to configure around this. Is this simply a limitation of the Entity Reference / Profile 2 relationship, or is there something I'm missing that could solve this? I can figure things out on the front-end display with Views, but this is rather challenging for someone unfamiliar with content authoring (which most of my authors are).

Thanks in advance for any help.


Viewing all articles
Browse latest Browse all 468

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>