Hi!
I have found this module and it seems like what I need, I just would like to clarify if this is indeed the case and also ask for some pointers on some of thing I would like to implement.
What I need is a kind of "author" or "person responsible" for a particular term. I have implemented the "categories" feature of one of my content types with terms, so for example I have a content type Articles, and the categories, like "Intersting stuff" or "History" or "Art & literature" are all taxonomy terms. For each of these terms, I would like to display the "responsible" ("columnist") person. I have only one view created for this content type and I would like to display this "person responsible" somewhere on top of the views list.
It's not a problem, if I have to use a views .tpl.php file here, just please let me know the general approach to retrive this programatically. So how to get a specific field value for a specifiy taxonomy term.
Thanks!
Best regards,
Bence
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | term_fields.views_.inc_.patch | 1.08 KB | adeel.iqbal |
| #1 | example.txt | 3.39 KB | b-prod |
Comments
Comment #1
b-prod commentedHi!
Actually it is not necessary to use tpl file for displaying the term author at the top of the page.
You can use the grouping field options in style configuration, and order by term author first.
So the view will only display the term author one time, followed by all nodes which have this term author.
To be able to display more information at the top of your lists, you may use the "Global>custom Text" field and rewrite the output of this custom text with available tokens. You should place the fields to display in the custom text before in the fields list and exclude them from display.
Like that, no need to use tpl file, all can be done with CSS.
Find attached a basic example in case of my explainations are not clear enough.
Comment #2
bbence commentedThanks!
But isn't this only possible with Term view? Or can I use this approach with normal Node Views?
Bence
Comment #3
b-prod commentedFor the moment, this is only possible with term views, because there is no handler implemented for node views.
I know this feature is really missing. I hope be able to work on it soon, but for the moment it is very complicated.
Comment #4
b-prod commentedComment #5
adeel.iqbal commentedhi,
I am using this module and was missing the presence of term fields in node views. So i have made it work for node views too.
Patch included.
I have tested it and it looks fine to me. But I would like to have and would really appreciate feedback.
Comment #6
b-prod commentedI'm really sorry. I don't have time now to test this patch. I will try as soon as possible.
@bbence: is it possible for you to test this patch?
Comment #7
summit commentedSubscribing, greetings, Martijn
Comment #8
summit commentedHi,
Took some time to test this. And it is working on node-views similar as term-views! So I think the patch is working.
I saw something else though..FCKEDITOR output is surrounded with
.
May be this is an easy fix to also get in, otherwise I will make a new bugreport, your call.
Thanks any way for your effort. Great module, certainly now view-support will be in!
Greetings, Martijn
Comment #9
b-prod commentedThanks a lot for testing!
Comment #10
adeel.iqbal commentedThanks for testing and providing feedback ;)