I've setup a panel that overrides one of my content type node views. I'm now trying to display all node fields in the panel, but am having trouble getting assigned taxonomy terms to display...
I've tried using a 'term from node' relationship, but that only allows me to display 'related terms' or the 'term description'. I also tried using a 'taxonomy vocabulary' context, but that displays all terms, not just the ones assigned to each node. Finally, I looked at using the 'taxonomy term' context, but it wants me to select a specific term, which seems to defeat the purpose...
Is this possible yet in this version of panels, and if so, what am I missing?
Comment | File | Size | Author |
---|---|---|---|
#11 | 489256-11.ctools_node_terms.patch | 6.59 KB | dww |
#11 | 489256-11.ctools_node_terms.settings_ui.png | 47.68 KB | dww |
#10 | 489256-10.ctools_node_terms.patch | 4.59 KB | dww |
Comments
Comment #1
BWPanda CreditAttribution: BWPanda commentedFound an old issue I had previously submitted, marked as duplicate of this one (#396880: List node's taxonomy terms).
Comment #2
crea CreditAttribution: crea commentedI think custom CTools content needs to be implemented for this to work. You can contribute to community working this out, I believe this is very common needed feature.
In case you gonna do it, implement vocabulary selector also, such as:
Display terms from vocabulary: all, $vocab1, $vocab2, $vocab3, ... etc (multiple checkboxes)
This will be very useful
Comment #3
julma CreditAttribution: julma commentedI had the same problem.
I decided to use : http://drupal.org/project/content_taxonomy
Thanks to this module, Taxonomy fields become CCK fields. Then the integration with Panel is made simple.
Hope it can help...
Comment #4
mairav CreditAttribution: mairav commentedI need this too but I don't know much of programming to help. Did anyone found another way that doesn't need another module to be installed?
Comment #5
merlinofchaos CreditAttribution: merlinofchaos commentedYou can use a view:
There's lots of tweaking you can do there to control how the terms are displayed, what vocabularies to show, etc.
Comment #6
merlinofchaos CreditAttribution: merlinofchaos commentedComment #8
julma CreditAttribution: julma commentedThanks for the View.
The first tweaking I needed, was to list terms by vocabulary like this :
"Name Vocalbulary 1" : Term1, Term 2...
"Name Vocabulary 2" : Term 3, Term4...
For this I ve added several times the same field "Taxonomy term" and restrict the terms listed to each vocabulary.
And it works fine.
Could be interesting to share some ways to tweak this views "terms for node".
For example, when I have time, I think I will try to use this plugin for views also :http://drupal.org/project/views_cloud
Comment #9
crutch CreditAttribution: crutch commentedsubscribe
Comment #10
dwwDoing this via a view is a bit overkill. sdboyer said he's accept a patch to just add a ctools content_type plugin to provide this from a node context, along with the other fields and such that are already provided. So, here it is. ;)
(Not sure if I should move this issue to the ctools issue queue or not, but the patch is against ctools).
Comment #11
dwwWhen I was talking this through with sdboyer, I suggested we might want another formatting choice for the equivalent of:
So, I added that and made all the relevant changes. The specific UI text could maybe be tightened up a bit (see attached png, which shows all possible settings by selecting inline-delimited), but I think this is basically RTBC now. I certainly tested all the cases thoroughly and the plumbing works as intended.
Comment #12
sdboyer CreditAttribution: sdboyer commentedYep, I prefer these in the ctools queue, so moving it there.
Committed, thanks!
Comment #13
dwwYay, thanks! Glad to implement something I needed The Right Way(tm) and be able to share it. ;)