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
Comment #1
damiankloip CreditAttribution: damiankloip commentedHave 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.
Comment #2
bsward CreditAttribution: bsward commentedMany thanks - that solve it. Really was being stupid....!
Comment #4
keti-1931 CreditAttribution: keti-1931 commentedhi,
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..
Comment #5
kpastore CreditAttribution: kpastore commented