When using the location directory in location views, has anyone found a way to display the current selected country and state/province in the title on the content part of the page in addition to the address bar. After a user selects a country, the next page is titled "COUNTRY" but contains a list of states/provinces. I would like the title to read COUNTRY:
It seems this would be less confusing and more user friendly.

Comments

EvanDonovan’s picture

To make the location/directory page names make sense, you just have to move them back a level. Here's how we've set them up on UrbanMinistry.org/org/browse-directory:

Page Title: Christian Ministry and Missions Organization Directory (by Country)

Argument 1 (country): Christian Ministry and Missions Organization Directory (by State/Province)

Argument 2 (province): Christian Ministry and Missions Organization Directory (by City)

Argument 3 (city): Christian Ministry and Missions Organization List

The lengthy names are for search engine optimization, so the H1 for each page has the terms we're targeting in it.

I've also changed the view a bit by limiting it to only one of the location-enabled node types that we have (so we can have separate directories for each), by disabling the pager, by sorting ascending (so that the terms show in alphabetical order), and by setting the option to 0 on Location: City (to show the full name for the cities). These modifications might also be helpful to you.

Btw, in the future, you might want to post directly to the issue queue for the module. You're more likely to get responses there.

I'm so glad that I discovered your post today. The Location Directory is just what we needed after trying for weeks to get our Location data into a Taxonomy hierarchy & displaying it that way.

Online Publications Editor,
UrbanMinistry.org
http://www.urbanministry.org/user/evandonovan

Nonprofit / EdTech Mentor
http://drupal.org/user/168664

groovypower’s picture

I actually discovered a better way. Whereby you use %1 for the first argument to determine the selected value. Therefore, for your argument 1:

Argument 1 (country): Christian Ministry and Missions Organization Directory (by State/Province)

Change it to:
Argument 1 (country): Christian Ministry and Missions Organization Directory (by State/Province) in %1

where you select Mexico, the argument would become:
Christian Ministry and Missions Organization Directory (by State/Province) in Mexico

to better describe from which country you are selecting states/provinces.