How can I remove the My Account link that shows up once a member logs in. This link is locked in the menu. All I want to show is logout.

Comments

tm’s picture

a simple method would be to disable/hide the navigation block altogether, and create a custom, single-item menu with the "logout" there. the containing block should only be visible to authenticated users (the logout path is not valid for anonymous, and therefore should disappear).

rayver’s picture

But then the admin links and create content links would be gone for 'staff' and 'admin' users if I took the navigation block out

tm’s picture

you could also tie visibility of the nav block to the staff role (don't remember if this requires an access control module of some sort); not sure about admin, though it may be able to see it anyway. there is a tips page for this.

there is another older thread that seems to discuss something similar to your needs at http://drupal.org/node/55296 (second set of comments). then, there is a module "menu per role" that might do what you want, but it requires a hack of core. a discussion here.

gpk’s picture

You can probably add the admin and create content menu items back into your custom block (you could use the primary links + primary links block for this) - these won't be visible to ordinary users since they won't have the right permissions.

Or make the custom block visible only to plain vanilla users, and the normal nav block to more privileged admins.

good luck

gpk
----
www.alexoria.co.uk

gausarts’s picture

have you tried to change the default path on login menu from user to say: user/login or else use absolute path like http://yoursite.com/user/login? This will remove the default behavior to include your My Account into login menu. Hope that helps

love, light n laughter
gausarts.com

love, light n laughter

jumoke’s picture

This helped me. Thank you :)