Hi everyone, I hope the title of this post makes some sense. I have built a some content types with node references and am trying to sort based on a referenced node's fields in views.
For example i might have a content type of 'country', this content type contains fields for things like population and native language. I then have two other content types with node references to the country type 'person' and 'city'. I want to be able to set up a contextual filter to sort 'city' or 'people' by the native spoken language so ideally the url would be something like:
www.mywebsite.com/language
this would will return people and citys that speak the language,
ideally then i could go to
www.mywebsite.com/language/city
or
www.mywebsite.com/langage/person
to return a single entry
Does anyone know how i would set this up in views?
Right now I have a views that shows me all the 'people' and 'citys' in one list but i cant get it to refine the results by the 'language', I tried to add a contextual filter of the 'country' language field, but i get no results when i test it out. I have set the relationship up in the relationship menu, so it has field_country-nid in the menu and have tried setting the filter with 'use relationship' drop down to be set to the 'country' or to the default and nothing returns any results.