Hi,

Probably a really stupid question but am new to this and spent a considerable number of hours trying to achieve this with no success.... :(

I am using Views Slideshow alongside view.

I need a view where I only show content with the same value for a field as the open node. (The field is a Nodereference field to a parent object). How can I create a contextual filter for this?

I have tried returning using a contextual filter with a php default value. Unfortunately I have 0 knowledge of php and so have had to rely on google and struggling. I guess what I need to do is use a contextual filter for the field and the php needs to return the open node's value for that field?

Any assistance would be greatly appreciated,

Ben

Comments

damiankloip’s picture

Status: Active » Fixed

Have you added a relationship for node_reference? You should be able to use the 'current content ID from URL' default argument and then add a node_reference relationship. You can then use this relationship for you fields to display your references.

bsward’s picture

Many thanks - that solve it. Really was being stupid....!

Status: Fixed » Closed (fixed)

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

keti-1931’s picture

Status: Closed (fixed) » Active

hi,
i also have the problem same as above. my issue is that i have a cck field of type user reference i wanted to display the selected users whole information on that node page. so in contextual filter what i should select?

say when i assign a user in that field i should get all data related to the user on the node page like his name , picture etc. can anyone guide on it..

kpastore’s picture

Issue summary: View changes
Status: Active » Closed (outdated)