How do I add a login page or login link?
Create a menu item of the type "Users → Login Form", or publish the Login module in a position of your template.
Two ways
A login page is a menu item that shows the login form; a login module shows the form in a sidebar or header. Use the page for a "Log in" link in your menu.
A login page
- Go to Menus → Main Menu → New.
- Menu Item Type: Users → Login Form.
- In the item's options, set where users go after logging in and out (Login Redirect, Logout Redirect).
- Save. Its address is now your login page.
A login module
- Go to Content → Site Modules → New and choose Login.
- Pick a position in your template and the pages it shows on (Menu Assignment).
- Save. Logged-in users see a Log out button in the same place.
Good to know
- Hide the "Log in" menu link from logged-in users by setting its Access to Guest.
Sources
- Login Form – Joomla User Guide
- Menu Item Types – Joomla User Guide