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
Comment #1
skwashd CreditAttribution: skwashd commentedYour question is related to the pathauto module.
Comment #2
trevorleenc CreditAttribution: trevorleenc commentedI 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?
Comment #3
PierreMarcel CreditAttribution: PierreMarcel commentedYou 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]
Comment #4
sprucemoose CreditAttribution: sprucemoose commentedI am having the same issue, and replacing underscore with hyphen makes no difference for me.
Any ideas anyone?
Comment #5
GreenGremlin CreditAttribution: GreenGremlin commentedI am having this problem too.
The Token for the location cck is along the lines of
But this returns nothing when I add it to Pathauto Patterns. The only Token for the Location cck which seems to work is
But this presents the whole Location, not just city or street etc.
Has anyone got this working?