Hi,

Sorry to ask. I've been searching over the forum and kind of found what works but can't understand it nor get it working for me.

I want to create a view that:

Takes the Taxonomy Term of the current node and then uses this Term as a filter to display Teasers of node that also share the term.

eg. The current node's Term is 'Education' so the view will display the Teasers of other nodes that have the Term Education.

I've read these and some other less clear help:

http://drupal.org/node/221919
http://drupal.org/node/226036
http://drupal.org/node/140588

I've tried it out but my view either displays posts with no Term attached or what seems to be utter randomness.

It's quite obvious to me the reason being I don't get it.

In the above topics I don't quite understand what the argument function does.

The code that is being suggested is: $args[0] = arg(1);

As I understand it this takes the current NodeID and makes it the first Value used in the argument for the page being viewed.

But how do I catch the current node's Term and then how do I use it/reference it in the filter.

My way of thinking says: Get current Node Term ---> Put Term in Filter = Display of information from Nodes with that Term.

Is this right?

How do I do this?

Thanks for any help you can give me.

Ben.

Comments

Bensbury’s picture

No one knows huh?
I still can't find the answer.

Stephane91’s picture

High
I'm a bit confused too. I've spend two days reading documentation, post and everything I can find about arguments without been sure what to do and not doing.
I'm more than confused, I'm lost in arguments...

I really like view, it's a really great module. I've done some nice things with it. Now I just want a view to be displayed in a block with a link on taxonomie of the page/node active on the screen. Not very hard I thought... not now anymore. I may have read post about view1-view2, args(); args[], arguments; view->vid, $views.vid ... ?
I just don't get how to say to view, only show terms vid matching the node.
I'm sure it's easy, may be it is documented somewhere, but I really need it to work.

Sorry to bother everybody with something like this. For someone else it can be : "It's right here, stupid, RTFM...".
But I really apreciate some help on this.

Thanks in advance

tnanek’s picture

I think I found the answer...

Make a relationship. In the Groups, select Taxonomy, then add Taxonomy: parent term.

Don't bother with arguments. The only time you could effectively use arguments is if the view is a page view (not all the time I imagine, but I've yet to come accross a case that's not that way), not a block as this one will clearly be.

I just learned this myself by testing it out, and shall be implementing this in many places. Thanks for the idea.

finex’s picture

I've tried to follow your suggestion but without any luck.

I'm trying to display a block with nodes associated to the same terms of the current displayed node too.

monstordh’s picture

take a look at this screenshot of my setup and see if it helps...

http://skitch.com/darrenhuckey/bfkpm/views-by-term

crutch’s picture

subscribe - working on education section of a site, this is helpful