Technical Objective (as I understand it): To make a panel page (/taxonomy/term/%term) recognize a 2nd term, and pass that 2nd term to a panel pane display of a view for filtering.
Desired outcome: When creating "News Article X", the author can select "News" from the "Sites" vocabulary, and "Computer Services" from the "Related Departments" vocabulary. Doing this would cause "News Article X" to appear in the news panel pane on "Computer Services" landing page (/taxonomy/term/%term), and NOT on "Information Technology"'s landing page.
Current Setup/background (successes):
* I've got a vocabulary calle "Sites" that is a list of our schools departments. The "Sites" terms are used to control authoring permissions (Tac Lite) and theme styles per "Site".
* I've got a view set up that filters based on the "Related Departments" termid.
* I'm using /taxonomy/term/%term to display a panel "landing page" for each department.
* Initial experimenting showed that it was simple to pass the main %term argument to the panel pane in the view for filtering...but my newsguys have told me that news articles need to belong to "News" and ADDITIONALLY be related to a number of departments.
Vocabularies:
Sites (ownership, permissions, theming)
-> Computer Services
-> Information Technology
-> News
Related Departments (simply for filtering)
-> Computer Services
-> Information Technology
Roadblocks (failures):
I can't figure out how to set up the context in the variants so that it knows to look for the current "Related Department" tid...in fact, I not even totally sure about how to let the variant know which "Related Department" is the 'correct' Related Department"...*sigh*
-James
Comments
Comment #1
merlinofchaos commentedSo the only actual relationship, from the perspective of the data itself, is that the two terms have the same name in different vocabularies?
Yes, that one is fairly tough. There is currently no mechanism that will do that automatically.
What you would have to do is write a relationship plugin which relates the term in vocabulary A to the term in vocabulary B.
Writing relationship plugins isn't *too* difficult, but it is not easy for a novice. You should start by looking at the node author relationship, it's probably the easiest. You'll need to write a custom query, I expect, to do the lookup.