Entity Translation Token

Component ID

2485083

Component name

Entity Translation Token

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Component created

Component changed

Component body

Features

This module allows you to use all the available tokens of a node, but by specifying the language of the translation you want.
It provides the following token prefix to do so:

[node:et_<LANGCODE>]

For example, let's say you have two enabled languages on your website: English (en) and French (fr). To ensure consistency in the URLs between the two languages, you want to set the Pathauto URL patterns to the [node:title] of the english translation even for the french translation. In this case you can use this token:

[node:et_en:title]

The token prefix [node:et_source] is also available. It allows you to use the source translation of the node, not matter in which language it has been created, and it will be so for all the other translations.

Requirements

Obviously, this module requires the entity_translation module, and the token module.