Extends Freemarker variables for custom theme
-
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!
-
I found that you can use GET parameters directly inside FTL which works perfectly
request.getParameter("param")