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

Dave Reid’s picture

Status: Active » Closed (duplicate)

If this core issue gets fixed, then you can: #733192: Tokens enclosed in [ ] are not recognized

tsvenson’s picture

Thanks Dave, nice to see it looks close to be fixed. Hope it will make it to 7.1.