token_eca_alter
Token ECA alter allows you to alter the output of other tokens with ECA module.
Usage
[token-eca:{existing token}#{key}]
[token-eca:{existing token}#{key}#{other_key}]
In ECA {key} used with Token Alter Event to identify by [token_alter_key], [token_alter_data] is the data of {existing token}.
After alter data use Token Alter: set data to set altered data.
Exist key with module:
Truncate:
Truncate data with default length 300 or define length option. Useful for using with Metatag data need truncate the text.
[token-eca:node:title#truncate]
[token-eca:node:title#truncate{length:100}]
Title case
Uppercases the first letter of each word.
[token-eca:node:title#title-case]
Uppercase
Uppercases all characters.
[token-eca:node:title#uppercase]
Lowwercase
Lowercases all characters.
[token-eca:node:title#lowercase]
first-uppercase
Uppercase first characters.
[token-eca:node:title#first-uppercase]
first-lowercase
Lowercase first characters.
[token-eca:node:title#first-lowercase]
base64-encode
Base64 encode string.
[token-eca:node:title#base64-encode]
base64-decode
Base64 decode string.
[token-eca:node:title#base64-decode]
md5
Md5 hash string.
[token-eca:node:title#md5]
sha1
Sha1 hash string.
[token-eca:node:title#sha1]
sha256
Sha256 hash string.
[token-eca:node:title#sha256]
url-encode
URL encode string.
[token-eca:node:url#url-encode]
url-decode
URL decode string.
[token-eca:node:field-url#url-decode]
Token alter chains
[token-eca:node:title#lowercase#first-uppercase]
Extend
You can define your key and use ECA to alter the token value with your requirements.
SUPPORT DEVELOPMENT
Donation vith Paypal by email: [email protected]