Download & Extend

Location: Province argument title not appearing

Project:Location Views
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

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

#1

I have that problem too.

#2

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?

#3

Component:User interface» Code
Category:support request» bug report

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:

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

if (!$country) $country = 'us'; # Just after case = 'title':
?>

#4

Status:active» closed (duplicate)

http://drupal.org/node/81734

nobody click here