Views support would be extremely useful.

Specifically a relationship to link the node and the related term.

This probably isn't going to be straight forward due to the node and term being joined on vid & node.title-term.name.

You will probably need to create a custom relationship handler and join handler.

Comments

Raf’s picture

I think I don't understand this well.

What this module does, is create a term in a given vocabulary when a node of a given type is created (or changes that term upon edit of that node).

As far as I see, all Views support is there: Views supports both nodes and taxonomy. I don't really see what I could add to that.

Could you explain a bit more what the functionality is you want, maybe with an example case or such. That way, I might understand better what you mean.

rooby’s picture

Basically something that makes it easy to link between the node and it's corresponding term(s) in views.
So for example you could have a node id argument and easily display information based on that nodes corresponding terms. Or a tid argument and easily display it's node data.

There are already term-node relationships in views but they aren't specific to the link between node and term that this module provides so it might be hard or in some cases impossible to get results based just on the node-term relationship that this module provides as opposed to the general node-term relationship that views supplies.

For examples of the kind of thing I'm talking about check out the views support for the nat and taxonomy_node modules. The nat module has greater support but they both provide some sort of relationship support.

As a use case example, I have a node (for this example the node is titled car) that has a corresponding term using this module (or nat or taxonomy_node) and I want a views block on that node page that displays other nodes from the site that have this car taxonomy term. The view has to display the results based on the node id of the car node, not the tid of the car term.

I know I can get this to work by creating an argument that uses php code to call functions in your module that work out the tid and pass that in but that is too complicated for a lot of people.

Raf’s picture

Assigned: Unassigned » Raf

So basically, you want the ability to create a view of all related nodes, based on that node's name? That does make sense as a feature. Adding it to the TODO list (not much time this week, so it'll hopefully be for the weekend of 12 - 13 february).

rooby’s picture

Yeah, that's pretty much it.

No rush though, I was looking at doing a patch but my time got eaten up so I probably won't be able to now.