Location: Province argument title not appearing

mcarbone - March 9, 2007 - 19:40
Project:Location Views
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

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.

#1

nocte - July 8, 2007 - 17:40

I have that problem too.

#2

Rob_Feature - October 6, 2007 - 12:27

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

naquah - November 2, 2007 - 15:59
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

Chad_Dupuis - May 6, 2008 - 16:39
Status:active» duplicate

http://drupal.org/node/81734

 
 

Drupal is a registered trademark of Dries Buytaert.