Keycloak display different text in theme

736 views Asked by At

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>
1

There are 1 answers

1
Philip K. Adetiloye On BEST ANSWER

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>