mayank
11 years agoAce
how to check if user is login or not in community site..
I have on menu componenet and i want one menu should appear if user is login otherwise i want to redirect it to other page based upon condition is user is login or not....Please help Thanks M...
- 11 years ago
This should be what you need:
<#if user.anonymous == true> <!-- user is not logged in --> <#else> <!-- user is logged in --> </#if>
You can see what other freemarker context objects are available here: http://lithosphere.lithium.com/t5/developers-knowledge-base/user-FreeMarker-context-object/ta-p/9339