Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I would like to be able to surround a token output with square brackets, in D6 it was possible by simply adding another pair of square brackets around the token , like [[token]].
But when I try the same in D7 I get the following warning when trying with [[node:content-type:name]]:
The Content Type - <em class="placeholder">Blog entry</em> is using the following invalid tokens: [[node:content-type:name].
Note that the second closing ] is not in the warning.
Is there any special token I can use for opening and closing square brackets or is this simply not possible?
Comments
Comment #1
Dave ReidIf this core issue gets fixed, then you can: #733192: Tokens enclosed in [ ] are not recognized
Comment #2
tsvenson CreditAttribution: tsvenson commentedThanks Dave, nice to see it looks close to be fixed. Hope it will make it to 7.1.