Jump to content

Change Login/Logout in blocktopmenu


Zet4

Recommended Posts

Hi,

 

I have a menu with a link "Log in" and always is static.

I need change Login/logout when user is logged in or logged out but in this module i can't use typical {if $logged...} because the chunk of code that check this is for any link that you put in menu, and I just need change this link.

 

I though use javascript but i can't check from javascript if a user is logged in or not and after change html title and "a" tag.

 

What do you suggest?

 

Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...