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.
Tokens for additional data appear but don't have any data.
For example, I'm using a pathalias pattern to display continent. My pattern is: [node:field-prgm-country:continent-name]/[node:field-prgm-country]/[node:title] The country renders correctly but the continent shows nothing. I've tried any other additional data (from list of availible tokens) and its all render blank.
How do access this additional country data for use in my path aliases?
Comment | File | Size | Author |
---|---|---|---|
tokens.jpeg | 210.88 KB | trouble.tribbles |
Comments
Comment #2
Alan D. CreditAttribution: Alan D. commentedNot sure why hook_entity_property_info_alter() is defined,,, it is just the same as [ENTITY:COUNTRYFIELD:continent]
> I've tried any other additional data (from list of availible tokens) and its all render blank.
Ignoring that, the others appear to work for me.
[current-user:field-nationality]
[current-user:field-nationality:continent]
[current-user:field-nationality:continent-code]
I'd assume you want
[node:field-prgm-country:continent]/[node:field-prgm-country]/[node:title]