23472 Posts in 18941 Topics by 2878 members
|Go to End|
3 December 2010 at 1:53am Last edited: 3 December 2010 10:12am
I wanna show the main menu (top menu) with a "Enter" link for not logged users, but if the user is a logged user, I wanna replace the "Enter" link title to My Profile.
I found the flowing article about Members Only Page but didn't understood very well how to do this.
Can anyone help me?
4 December 2010 at 2:00pm
If you only want to check if the user is logged in, and you are adding the link manually, you should be able to use this in your template:
<% if CurrentMember %><a href="link/to/profile">My Profile</a>
<% else %><a href="link/to/enter">Enter</a><% end_if %>
Hope that helps,
4 December 2010 at 4:06pm
Thanks a lot!
|Go to Top|