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?
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?
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.