Forum Discussion

lc-garcia's avatar
11 years ago

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_...
  • DougS's avatar
    11 years ago

    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()}