1
0
-1
Hi,

Im trying to edit a portal page to show one link if a user is logged in and another if the user is not. I am trying to use the velocity notation to do so.
So with in my html I want to know how to tell if a user is logged in or not
From what i can tell it would have to something like this....
#if ($userLoggedIn)
<a href="a link">Link</a>
#else
<a href="A different link">Different link</a>
#end
  1. Don Sibley
    I just tried using:

    #if ($permissionSet) <!-- only show if user is logged into portal-->

    Display something
    #end

    And that seems to work. is this the method I should use?
  2. Don Sibley
    Hi there.

    is there any documentation available for this?
  3. Chantal Thomas
    Hi Don,
    Which portal page are you trying to edit?

    Thanks
    Chantal
CommentAdd your comment...

1 answer

  1.  
    1
    0
    -1
    1. Chantal Thomas
      Hi Don,
      Here are some Here are some Velocity references:

      http://click.apache.org/docs/velocity/user-guide.html
      http://velocity.apache.org/engine/devel/getting-started.html
      http://velocity.apache.org/engine/devel/vtl-reference-guide.html
      Cheers
      Chantal
    CommentAdd your comment...