Drupal Association members fund grants that make connections all over the world.
Thanks for a great module, I've configured it to display a vocabulary along with a node in which it is referenced using Entity Reference, Page Manager, Panels, Views Content and Views and it seems to be working great. When I was setting it up though, I came across a couple of quirks that seem to originate in the Page Manager/Panels vocabulary relationship - I'm not totally sure if it's a bug or if I'm doing something weird as I'm just starting to get my head around the config and I haven't delved into the code.
I couldn't find any reference to this issue in the queue so I'll do my best to explain it here. Apologies if I'm way off the mark or if this issue has already been addressed:
- I have a node type with an Entity Reference field to a vocabulary.
- I'm using the Page Manager node override, with a selection rule for my content type.
- In my Page Manager/Panels variant's contexts I added a relationship on the vocabulary reference field, here lies the first quirk of this setup: the relationship is listed as Node from Node (on Vocabulary [field_vocabulary]). Since the reference is to a vocabulary I would expect the relationship label to say Vocabulary from Node...
- Moving on to the second related quirk: My Views content pane has a contextual filter Vocabulary ID and so I want my Pane Settings > Argument Input to be From Context > Taxonomy > Vocabulary ID however if I set it to this my View Pane will not be listed in the Panels content options. I think this is because Panels does not recognise the relationship to my vocabulary as containing a vid.
It seems I can actually work around this (though I haven't tested it thoroughly) if I set the Views pane settings argument input to From context > Node > Vocabulary (field_vocabulary), then go back to my Panel's content listing where it now show's my view pane allowing me to add it, and to select the Node from Node: On Vocabulary [field_vocabulary] context in the config. Then after saving the Panel, I can go back to the Views pane settings and reset the argument input to From Context > Taxonomy > Vocabulary ID which allows my View to render the correct results.
If my interpretation is correct and this is a bug, then I think basically what is happening is that Panels relationships does not correctly recognise an Entity Reference to a vocabulary, which consequently does not recognise the presence of a vid argument in the context... maybe?
Thanks for your time.