Hi,

I am trying to solve this for days, but without success. This is my case:

1. Each term belongs to 2 vocabularies. E. g.
Term "Lion" belongs to "Animals" vocabulary and is tagged as "Wild cats" in vocabulary "Africa"

2. Each node belongs to 2 vocabularies. E. g.
Article "Wonderful lions" belongs to "Photos" vocabulary and is tagged as "Wild cats" in vocabulary "Africa"

Now I want to display a block with all of the nodes that are tagged as "Wild cats" on the TERM page (e. g. "Lion" page).

I don't have any problems with creating related nodes block on NODE pages and dispaying it, but it seems very complicated to show the same block on term page, e. g. to show the nodes that share the same tags as the current term.

What arguments do I have to pass in Contextual Filters to make it work? I have tried at least 100 combinations (!), including relationships, but it doesn't work. I'm slowly getting desperate, because I really need this functionality.

Here is the export of one of my combinations:

SELECT node.title AS node_title, node.nid AS nid, node.language AS node_language
FROM 
{node} node
LEFT JOIN {field_data_field_africa} field_data_field_africa ON node.nid = field_data_field_africa.entity_id AND (field_data_field_africa.entity_type = 'node' AND field_data_field_africa.deleted = '0')
WHERE (( (field_data_field_africa.field_africa_tid = '46' ) )AND(( (node.status = '1') AND (node.type IN  ('articles')) )))
ORDER BY node_title DESC
LIMIT 1 OFFSET 0

Thank you in advance for any ideas!

Comments

MustangGB’s picture

Status: Active » Closed (outdated)