0

I'm customizing the keycloak theme but want to display a different text in the template.ftl based on the current page.

How can I achieve that in the freemarker template - template.ftl, something like this

<#if login>
   ...
</#if>
<#if register>
    ...
</#if>
Philip K. Adetiloye
  • 3,102
  • 4
  • 37
  • 63

1 Answers1

1

Okay, figured it out...not a big deal to do

                    <#if register??>
                        <li><a href="${url.registrationUrl}">Sign In</a></li>                            
                    <#else>
                        <li><a href="${url.registrationUrl}">${msg("doRegister")}</a></li>
                    </#if>
Philip K. Adetiloye
  • 3,102
  • 4
  • 37
  • 63