For example:
I built one node for each staff. "node title" is the staff name, and there are some other content, such as photos and presentations.
Now I need to build a new project and assign staffs to the project, then I need to refer "staff node" in "project node". When choose staffs, I need staff names and photos. Because sometimes there are duplicate names, I need to see the photos also. Thus, I need at least two fields, title and photo.
At present, I tested (8.0.0, 8.0.2, 8.0.3, 8.1.x-dev) versions. In these versions, I added more fields in "views Entity Reference", but only displayed one "title field" field.
steps:
a.) I added two fields in "views---Entity Reference", "Content: Image" and "Content: Title"(see picture 01), which can be displayed normally in views Preview. You can see the Image and Title. (See the left corner of picture 01)
b.) In "Plans" content type, I added the refered "Entity Reference", but only displayed Title, no Image. (see picture 02)
c.) In "Add Plans" node form , only displayed Title, no Image. (see picture 03a)
d.) Attached a picture of drupal 7.41,there are two fields can be displayed normally (see picture 05), and were displayed as inline.
It can be worked out in D7. Can D8 work the same as D7?
Comments
Comment #2
brightbai commentedComment #3
dawehnerWell, as far as I can tell, this is more about a missing feature than about a bug to be honest.
Comment #4
danisha commentedThis issue seems to be not related to views core module. This is not a minor issue but a functionality which is missing from the entity reference module.
Comment #5
dawehnerWell, yeah, I think it was never promised to port over all available features :)
Comment #6
brightbai commentedComment #7
brightbai commentedThe 03.PNG is wrong, change to 03a.PNG.
Comment #10
mrpeanut commentedI believe this is a duplicate of #2174633: View output is not used for entityreference options.