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

CommentFileSizeAuthor
#5 term_fields.views_.inc_.patch1.08 KBadeel.iqbal
#1 example.txt3.39 KBb-prod

Comments

b-prod’s picture

StatusFileSize
new3.39 KB

Hi!

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.

bbence’s picture

Thanks!

But isn't this only possible with Term view? Or can I use this approach with normal Node Views?

Bence

b-prod’s picture

For 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.

b-prod’s picture

Title: Term fields useable for what I need? » Create views handlers for node views
Version: 6.x-1.10 » 6.x-1.x-dev
Component: Miscellaneous » Code
Priority: Normal » Minor
adeel.iqbal’s picture

StatusFileSize
new1.08 KB

hi,

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.

b-prod’s picture

I'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?

summit’s picture

Subscribing, greetings, Martijn

summit’s picture

Status: Active » Reviewed & tested by the community

Hi,

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

<p> </p>

.
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

b-prod’s picture

Status: Reviewed & tested by the community » Fixed

Thanks a lot for testing!

adeel.iqbal’s picture

Thanks for testing and providing feedback ;)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.