Forum Discussion
VarunGrazitti
11 years agoBoss
@Puljac - You can use the following snippet, you can make the changes as per your requirement.
<#attempt>
<#assign onlineStatus = rest("/users/id/${author.id}/sessions/online/latest")>
<#recover>
<#-- Cat. not there -->
</#attempt> <#assign isRegistered = onlineStatus.user_session.@null /> <#if (isRegistered?has_content) > <#assign registeredString = "Offline"/> <#assign registeredClass = "Offline" /> <#else> <#assign registeredString = "Online" /> <#assign registeredClass = "Online" /> </#if>
You can register for our Webinar on lithium, follow the link in the signature.
- Puljac11 years agoMaven
Thank you VarunGrazitti .
So basically i make a component with this snippet and put it in POST page.
I tried and have freemarker errors....
Related Content
- 5 years ago
- 2 years ago