Hello folks,
I created two content types, ALBUM and PHOTO. Then, I created a view called "gallery" (filtered by "album" content type) to show the "title" and "description" fields of ALBUM nodes, and the "people" field from PHOTO nodes.
However, the Views preview only shows the content of the "title" and "description" fields from the ALBUM content type. The field "people", from PHOTO content type, is shown blank.
I tried to work with the advanced options "contextual filters" and "relationships", but it didn't work.
Could you please tell me other other things I should look for to fix this?
Thanks in advance,
Jurias
Comments
Comment #2
mustanggb commentedAre you trying to add a photo to each album?
If yes then you can either just add a photo field to the album content type and not bother with the photo content type.
Or you can add an Entity reference field to the photo content type and use it to link a photo node to an album node, then you'll be able to add a relationship in views to show a photo next to your title and description fields.
Personally if it's album art I'd just go with the first option, unless you have a specific use-case there isn't much point in abstracting into two different content types.
Comment #3
renatog commentedHi people.
#2 makes sense.
Comment #4
renatog commentedThank you very much @MustangGB.
@Jurias; any question please comment here okay?!
Thanks.