Drupal 6: Related "Locations" using Views

109 Views Asked by At

I have a custom field (field_locations ) which lists 20 different locations. I would like to use that field as an argument to obtain a block view that lists similar/related locations.

Any idea on how to construct the argument?

1

There are 1 best solutions below

0
On

Create a contextual filter for field_locations on your view. Set the filter to provide a default value, using PHP code. In the filter's PHP code, grab and return the value of your field or taxonomy term.