Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
Rob_Feature CreditAttribution: Rob_Feature commentedFor 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):
Also, note that your state's ID may not be arg(2), but it was for my pathauto setup...