Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-38173

$is_signed_in variable is not available in portlet.vm

    Details

      Description

      Problem:
      It's not possible to check if a user is signed in with $is_signed_in variable in portlet.vm.

      Reproduction:
      Create custom a portlet.vm with a #if($is_signed_in) statement.
      Select the theme and check if the if statement works as expected.

      Use-case:
      We have a "favorite this portlet" button in each portlet header which is only visible for all logged in users (So not guests). The most straight forward way to show/hide this button is using the $is_signed_in check.

      We've now implemented it with a CSS workaround which isn't optimal.

        Attachments

          Activity

            People

            Assignee:
            mika.koivisto Mika Koivisto
            Reporter:
            bob.brinks Bob Brinks
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              7 years, 13 weeks, 4 days ago

                Packages

                Version Package
                6.1.20 EE GA2