I've created a view that displays nodes of a particular type ('news'). Currently the view takes one "term id" argument, which allows me to just display nodes tagged with a particular term. However, using the taxonomy_node module, I also have a 'tag' node created for each of these terms. This 'tag' node contains some extra CCK fields. I'd like the ability to show some data from the 'tag' node in my view of 'news' nodes. Basically if a 'news' node is tagged with a particular term, I want to display the news article, along with some data from the 'tag' node.

I also want to be able to filter the view based on the node id of the 'tag' node rather than the term id.

I imagine the relationship between the taxonomy term and its corresponding node needs to be exposed to views somehow.

Cheers,
Stella

CommentFileSizeAuthor
#3 view_taxonomy_term_node_mapping.txt.zip1.47 KBpkej

Comments

hanoii’s picture

Status: Active » Postponed

I'd think this is possible, there is some relationship exposed to views currently in the -dev version, but not the one you are requiring, also, I am not sure how good that will work. I'd think if your 'news' tag has only one term it might work just fine, otherwise it might create duplicate rows, but I am not sure about this.

You could do that, however, with some custom theming of your views and accessing either the taxonomy_node db or using some functions of this module to obtain the 'tag' node and gather the information you need.

For know I am posponing this issue as I won't be likely working on this any time soon, but leaving it here for reference.

pkej’s picture

I wonder if you have any idea of when you might add it. It is needed to make this module usable for most use cases I can think of.

pkej’s picture

StatusFileSize
new1.47 KB

Doh.

jonthomas83’s picture

Hi there,

I too need this functionality. Have a node with the given vocab, that's linked to taxonomy_node. I will need to create a view showing that node but also pull in data in CCK from that referenced taxonomy node.

I'm guessing I need the above, but I cannot get it to work, I am using Views 2.

Any help would be very much appreciated.

Many thanks,
Jonathan

jonthomas83’s picture

Just installed Views Alpha3 but, imported your file but no luck as it says the following under "Relationships":

Broken/missing handler: taxonomynode > tid
Broken/missing handler: taxonomynode > nid

Any help would be greatly appreciated.

Yuri’s picture

subscribing

slucas’s picture

Tried the same to import your view example in view 3 and the handler doesn't exist.
I've installed dev version also that has a views integration, but it seem to me that it is incomplete.
It target view 2 API and it doesn't implement hook_views_handler().
Is this normal ?
It's a shade because the module is a good one, and a good complement to NAT that have a complete views integration.
Do you plan to develop it ?
Do you have a plan for D7 porting ?