Ok, this seems like it should be brainless, but alas, I can't accomplish it....

I just want to print the name of the city or state as an h2 at the top of each location_view page. So, for example if I'm viewing nodes from Michigan, I just want the page title to say Michigan.

Am I missing something? Or is this much harder than it should be?

Comments

Rob_Feature’s picture

Status: Active » Closed (fixed)

For future reference...here's what I did (is there a more 'built in' way?). I put this in my view's header, with the input format as php (obviously):

<?php
$stateid  = arg(2);
$states = location_province_list_us();
print '<h2>' . $states[$stateid] . '</h2>';
?>

Also, note that your state's ID may not be arg(2), but it was for my pathauto setup...