I would like to create block of top content related to taxonomy term.
I have vocabulary cities and terms like Boston, Chicago....
Then, I have nodes and each node is related to just one city ( Node A - Boston, Node B - Chicago, Node C - Boston....).
When someone click on e.g. Boston, I want to display block with relevant nodes, sorted by rating.
I tried views contextual filter - taxonomy term by ID (with depth, translated), then provide default value - taxonomy term from URL.
But I have different results on taxonomy term page (e.g. Boston) and node page (e.g. Node A, which is related to Boston).
Any clue?
Comments
Comment #1
torotil commentedHi adelka,
it's difficult to say what's happening without more information about your views. Could you post your exported views configuration and possibly the SQL-queries that were sent to the database while the view was executed (one on the term page and one on the node).
From what you wrote I can tell that you need at least two contextual filters: one that's used if you're on a term page and one that's used when you're on a node (tagged with a term).
Comment #2
pifagor