Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Where the My account & Login links are for authenticated users, Id like to put Register & Login links for anonymous users. What is the best way to accomplish this? If I add a menu item to the "User Menu" It shows up for all user roles. Can I code this in somewhere?
Also - the "My account" link in the user menu is permanently disabled for some reason.
Comments
Comment #1
markhalliwellIn your user menu, you can add the following two menu items with the paths:
When a user is logged in, these links will not show (this is the nature of an authenticated user). When a user is not logged in (anonymous), then these links will show. As far as the "My account" link, I am unsure why this would be happening. Themes do not handle menu items in Drupal, do you have a conflicting module installed that controls menu items? Try disabling them first.
Comment #2
milesw CreditAttribution: milesw commentedGreat answer, solved my question. Thanks!
Comment #3
markhalliwell