Views : Entity reference field

Created on 21 May 2024, 7 months ago
Updated 22 May 2024, 7 months ago

Problem/Motivation

When I use entity reference to Taxonomy everything works so this case:
1.Open view
2.Add relationships (your custom field entity ref to taxonomy) : field_status_id:Taxonomy term
3.Add Taxonomy Name field and add relationships to field_status_id:Taxonomy term
4.Field is displayed with status name as requested!

However the same for Content does not work:
1.Open view
2.Add relationships (your custom field entity ref to content type) : field_comments_id ( or Content)
3.Add title or ID field and add relationships to field_comments_id
4.Nothing is displayed

So it seems it works fine for taxonomy, but not for content.

πŸ› Bug report
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia coaston

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @coaston
  • Status changed to Postponed: needs info 7 months ago
  • πŸ‡ΊπŸ‡ΈUnited States apmsooner

    The logic is the same and I cannot reproduce this issue. I'd suggest double checking if the referenced content actually exists and is published. Maybe create a separate simplified example and see if you get different results.

  • Status changed to Closed: works as designed 7 months ago
  • πŸ‡ΈπŸ‡°Slovakia coaston

    Thank you. When i tried today it worked. Looks like i needed a break. Thanks for your test. Much appreciated.

Production build 0.71.5 2024