Forum Discussion

keithkelly's avatar
3 years ago

Best practice for Visitor Landing Page? (hiding components for anonymous users)

We're all logging on through SSO.  But, we'd like the pre-SSO-sign-on landing page to be simple w/ a message like "hey, sign on using SSO to get started..."

How can I hide a bunch of components on the Community Page for anonymous users?

  • Hello keithkelly,

    You can use following IF tag to hide components for anonymous users

    <#if !user.anonymous>
    // Write code here which will not display to anonymous users
    </#if>

     

  • Hello keithkelly,

    You can use following IF tag to hide components for anonymous users

    <#if !user.anonymous>
    // Write code here which will not display to anonymous users
    </#if>