I am trying to get my URL alias for my content type to render with the country, city and state. The information is coming from the locations cck but when I try and select the replacement patterns, I only get the option for the whole address. I need to be able to break it down. I am a drupal newbie and I have tried researching and reading and have tried everything. I assume that I am just missing something pretty simple. Here are a few things that I have tried:

field machine name= field_venue_address

[node:field_venue_address-state]
[location:city_0]
[node:location:city_0]
[node:field_venue_address:city]
[node:field_venue_address:city_0]
[node:field_venue_address-city]

I always get the message saying invalid tokens.
How do I get the right tokens?

Please help. I need this url to be structured this way.

Comments

skwashd’s picture

Project: URL Alias » Pathauto
Assigned: tateenglund » Unassigned
Category: task » support
Priority: Major » Normal

Your question is related to the pathauto module.

trevorleenc’s picture

I have been unable to get using tokens for location in my pathauto either...

I don't get any errors, they just do not update...

can someone please enlighten as to how to make these work?

PierreMarcel’s picture

You need to use the hyphen ( - ) token, and not the underscore ( _ ) one. For example using the the field given above:

[node:field-venue-address]
[node:field-venue-address:city]
[node:field-venue-address:state]

sprucemoose’s picture

I am having the same issue, and replacing underscore with hyphen makes no difference for me.

Any ideas anyone?

GreenGremlin’s picture

Issue summary: View changes

I am having this problem too.

The Token for the location cck is along the lines of

user:original:location:city:?

But this returns nothing when I add it to Pathauto Patterns. The only Token for the Location cck which seems to work is

current-user:location

But this presents the whole Location, not just city or street etc.

Has anyone got this working?