FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. Tags
    3. freemarker
    Log in to post
    • All categories
    • danD

      How can I get the client_id in my email template?

      Q&A
      • email freemarker templates • • dan
      2
      0
      Votes
      2
      Posts
      1.3k
      Views

      danD

      I figured it out…. I just had to put state.client_id in parens so it resolved them together.

      [#assign clientId = (state.client_id?string)!"dafb6ef6-a2a8-4d34-9d69-59bfed3e31aa" /]
    • danD

      Does template localization include the freemarker date and time built-in function?

      Q&A
      • templates datetime freemarker • • dan
      2
      0
      Votes
      2
      Posts
      1.7k
      Views

      danD

      Yes. Set the locale in the template and this will display the correct values, for example the month name.

      More on freemarker here: https://freemarker.apache.org/docs/

      Here's how to set the locale in a template: https://freemarker.apache.org/docs/ref_directive_setting.html