People who are already logged into your Joomla site do not need to see a login link or login form. In this video I show you how to hide those things from people who are logged in.
00:00 Introduction and Sponsor
00:21 Channel Overview and Services
00:41 Setting Up the Login Link
01:12 Setting the Guest User Group
01:58 Creating the Logout Link
02:44 Hiding the Login Form
03:30 Ensuring User Group Assignment
03:56 Conclusion
Summary
In this tutorial, Tim Davis from the Basic Joomla Tutorials YouTube channel explains how to hide the login link and form from users who are already logged into a Joomla site. He demonstrates how to set up a login link and logout link with appropriate access levels and how to configure the login form to only show to guests. Tim also highlights the importance of ensuring users are correctly assigned to the "Registered" user group to display the logout link properly. This setup enhances the user experience by only showing relevant options to logged-in and guest users.
Key Points:
Introduction and Sponsor:
Tim Davis introduces the video and mentions the sponsor, MySites.Guru, which offers a free site audit for Joomla sites.
Channel Overview and Services:
Overview of the Basic Joomla Tutorials channel and the services offered, including building, maintaining, migrating, and upgrading Joomla sites.
Setting Up the Login Link:
Navigate to the backend of the Joomla site.
Go to "Users" > "Manage" > "Options" and ensure the "Guest User Group" is set to "Guest." This is usually the default setting in a new Joomla 4 install.
Go to the main menu and add a new menu item called "Login."
Set the menu type to "Users" > "Login Form."
Set the "Access" level to "Guest" to ensure the login link only shows to guests (not logged-in users).
Creating the Logout Link:
Add a new menu item called "Logout."
Set the menu type to "Users" > "Logout."
Set the "Access" level to "Registered" so the logout link only shows to logged-in users.
Save and close the menu item.
Hiding the Login Form:
Go to "System" > "Site Modules."
Locate the "Login Form" module and edit it.
Set the "Access" level to "Guest" to ensure the login form only shows to guests (not logged-in users).
Save and close the module.
Ensuring User Group Assignment:
Ensure all users are assigned to the "Registered" user group so that the logout link shows to everyone who is logged in.
Conclusion:
Tim emphasizes the importance of properly setting user access levels to ensure a smooth user experience.
Encourages viewers to subscribe for more Joomla tutorials and tips.
Please send any feedback or bug reports or queries to;
Contact Tim Davis â–º
Joomla Training Cohort â–º https://cybersalt.com/jtc
Add comment