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.
I want to provide Field Value (Integer field) into path Patterm,
I tried to use [node:field-myfield] and [node:field_myfield] and I get no difference, label of field is aliased.
Comments
Comment #1
Dave ReidYou first might want to try tweaking how that field is output in tokens - https://drupal.org/node/1299662 (which requires you to use the underscore-version, node:field_myfield).
Comment #2
Jarviss CreditAttribution: Jarviss commented---
Comment #3
Jarviss CreditAttribution: Jarviss commentedDave Thank you! But still I use [node:field_zap] and get no integer in Path Alias is this a bug?
I deleted Path aliases, generated new, and Flushed all cache.
Token 7.x-1.5 Pathauto 7.x-1.2 Drupal 7.22
I get aliased label of integer field value in url path!
Comment #4
Jarviss CreditAttribution: Jarviss commentedAlso when I use Term Reference Field Token like [node:field-term] as I suppose I should get Term id in path but I get term name alias in path!
Comment #5
Jarviss CreditAttribution: Jarviss commentedI guess it is about Field tokens Issue https://drupal.org/node/691078
Comment #6
Jarviss CreditAttribution: Jarviss commentedAlso found that [node:field_integer] does not generate label alias in path at all!
Comment #6.0
Jarviss CreditAttribution: Jarviss commented1