I am using Location: Province as an argument, and would like the title '%1' to render as the name of the province, but nothing is appearing. A look into the code shows that the location_views_handler_arg_province function is using $country in order to pull the full province name, but I don't think $country is being set anywhere, and furthermore, I'm not even sure how it would get the country unless it was another arg (e.g., us/TX).

I put this as a support request, because I'm thinking maybe I can get this working somehow with the right views configuration, but it's also possibly a bug.

Comments

nocte’s picture

I have that problem too.

Rob_Feature’s picture

Any updates on this? I simply want the state/city name to appear as the title of the location view, but I have nothing so far....anyone solved this?

decafdennis’s picture

Component: User interface » Code
Category: support » bug

Confirmed bug. Both the breadcrumb and the title aren't working.

I worked around it by adding the following lines to location_views_handler_arg_province, given you only have locations in the US:

if (!$query->country) $query->country = 'us'; # Just after case 'link':

if (!$country) $country = 'us'; # Just after case = 'title':
Chad_Dupuis’s picture

Status: Active » Closed (duplicate)