FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Extends Freemarker variables for custom theme

    Scheduled Pinned Locked Moved
    General Discussion
    1
    2
    2.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      echino
      last edited by

      Hi there!

      I'm currently in the making of a custom theme for our multi-tenant saas and I'm trying to inject some variables.

      Is there any possiblities for us to assign / declare a variable in order to if statement to work on a custom variable?

      I saw a post of someone talking about "assign" in freemarker but without exemple nor documentation.

      And at the beginning of ftl files we have

      [#-- @ftlvariable name="version" type="java.lang.String" --]
      

      and I was wondering if I could add another one.
      I can't use application theming because of the architecture and we want a generic template of all of our customer. I already achieved color, logo and name customization via JS but it would be so much prettier to have a way in FTL.

      Thanks in advance!

      1 Reply Last reply Reply Quote 0
      • E
        echino
        last edited by

        I found that you can use GET parameters directly inside FTL which works perfectly

        request.getParameter("param")
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post