2

I have used login (user/login) as menu item in the main menu. While I am logged out, it displays login menu link properly.

When I am logged in, still displays me login as a menu item. But I dont want to be displayed or instead 'logout' over their.

I tried adding logout(user/logout) as seperate menu, but still no luck it shows as a separate menu item. Any suggestions?

Thanks in advance.

4

You need two have two menu items, login and logout.

For the login link the path is: user/login and for logout the path is: user/logout

Make sure you don't enter a absolute URL to the links, just user/login and user/logout.

I have just tested this by adding two menu items to the primary menu.

  • Thanks and its weird. Same set of things i actually tried, but didn't work.One more time i tried it actually works. Thanks for your time any way :) – Ram Jul 31 '13 at 7:46
  • Simple and nice method. Works perfectly. – Akshay Jul 31 '15 at 4:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.