Closed (works as designed)
Project:
Login Menu
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
25 May 2010 at 19:52 UTC
Updated:
18 Sep 2010 at 03:56 UTC
The system is now smart enough to hide the link to user/login if you're logged in (which is good, because you can still go there, but you get a stupid access denied message) but the logical thing to do would be to support an option to change it to "log out" instead of hiding it.
Comments
Comment #1
rcross commentedYou can add an equivalent "logout" menu item which behaves as expected (hidden when logged out, shown when logged in)
Comment #2
verta commentedOK, I guess can phrase this a feature request ...
This is really the kind of thing that I expect to find in core in a CMS, not have to manually make menu items or install community modules to implement.
Comment #3
rwohlebDrupal is built to be flexible in this regard. It doesn't force you to have these links. In this case, there should already be a 'logout' link in the 'Navigation' menu that you can move to another menu if that suits you better.
I'm marking this as 'by design' since Drupal 6 already functions as expected, and this isn't the place for Drupal core feature requests anyways :)
Comment #4
trentharlem commentedTo back up rwohleb, Drupal 6's built-in menu structure does function as expected in this regard.
For instance, create the links "log in" and "log out" with the respective paths "user/login" and "logout" and they will "toggle" themselves.
Indecently, I was having an issue with the logout not functioning properly due to page caching. I resolved it by implementing the "Boost" module...
http://drupal.org/project/boost