Problem/Motivation
There is a relationship provided by taxonomy in TermViewsData
, labeled as "Content with term - Relate all content tagged with a term." This relationship allows you to find related content by joining from the taxonomy_index table to the node
table.
I believe however that it should be joining to the node_field_data
table. As at the moment you cannot add fields, filters, etc. relating to the nodes joined to.
What are the steps required to reproduce the bug?
- Install Drupal - Standard profile
- Add some articles with the same tags
- Create a view of content (nodes)
- Add a views relationship to the tag term field
- Add a views relationship to the "Content with term" using the previous relationship.
- Try to add any fields on content - There is no option for selecting the relationship as the views base node is the only node available.
What behavior were you expecting?
I am expecting to be able to add fields,etc for the related content.
What happened instead?
There is no option for the related content.
Proposed resolution
Change the base table for the relationship
Remaining tasks
Change the base table for the relationship