1

I want to make some changes on template(portlet.vm) in liferay based on some condition. And condition is to know whether user is signed in or not. Something like:

 #if ($is_signed_in)
         <section class="portlet" id="portlet_$portlet_id">
         ..
         ...
         </section>
 #else
        //Some other divs
 #end

I m trying to access $is_signed_in variable, but its not wokring. Kindly tell me solution of this problem. Thanks in advance.

Sonal S.
  • 1,444
  • 1
  • 15
  • 31

1 Answers1

0

Yeah got my answer. To use $is_signed_in variable in portlet.vm, we need to include #parse ($init)

Sonal S.
  • 1,444
  • 1
  • 15
  • 31