Hello!
I've just upgraded my Pathauto to Pathauto 6.x-2.x-dev (2010-Aug-13) and noticed that I can't use one of my custom fields which I used to create short aliases for my materials.
I have two custom fields for my news:
1. Alias; Type: text; Name: field_alias
2. Autoalias; Type: computed; Name: field_autoalias; Code: $node_field[0]['value'] = ($node->field_alias[0][value])?$node->field_alias[0][value]:$node->title;
The second one I use for generating aliases in Pathauto. Here is my pattern: news/[yyyy]/[mm]/[dd]/[field_autoalias-raw].
With the setup above Pathauto doesn't transliterate text wich I type in my "field_alias" and wich is computed then in my "field_autoalias" field.
Some examples:
1. field_alias = "this is a test page"; expected alias = "this-is-a-test-page"; real alias = "this%20is%20a%20test%20page"
2. field_alias = "это тестовая страница"; expected alias = "eto-testovaya-strnitsa"; real alias = "это%20тестовая%20страница"
So as you can see Pathauto doesn't transliterate my [field_autoalias-raw] token and doesn't replace spaces with dashes anymore :(.
Can someone confirm the issue or give some clues how to overcome it?
Thank you!
Comments
Comment #1
kevinquillen commentedI think I am having a similar issue:
http://drupal.org/node/895302
Comment #2
dave reidThe problem is the token name. Any tokens with 'alias' or 'alias-raw' at the end are not modified because they are assumed to be actual URL aliases and should not be changed.
Comment #3
kevinquillen commentedBut the -raw is what we used for almost a year and a half now. I removed the -raw part of it, and still experience the same issue.
For example, a Webform page with [menupath-raw].htm:
Title: Coupon
Placement: Primary Links: Homes
Result: Homes/Self%20Qualifying%20Coupon.htm
[menupath].htm:
Result: Homes/Self%20Qualifying%20Coupon.htm
Comment #4
dave reidI was responding to the original post because the token name being used is [field_autoalias-raw] which matches /alias(-raw)?/.
@Kevin: There is already an issue about menupath and menupath-raw: #881270: [bookpath], [menupath], [*path] tokens not cleaned: aliases without punctuation removed, lower casing, etc.