lc-garcia
11 years agoGuide
Email template context object lowercase
Hi there,
I've been trying to have the following sentence working
${subscription.localizedObjectType?lower_case}:
in an email template (just liek stated at http://freemarker.org/docs/ref_builtins_string.html#ref_builtin_lower_case), but the syntax seems to break the code.
Has anyone tried (and succeeded) on something like this?
Gracias,
Luis
The email templates are one of the last holdovers from the days when Lithium used Apache Velocity (before freemarker) and so still use velocity syntax (instead of freemarker). With Velocity, you just use the java String methods, so in this case you could do this:
${subscription.localizedObjectType.toLowerCase()}