- Creating Menus
- Menu Module Parameters
- Adding Menu Items
- Selecting Menu Item Types
- Modifying Menu Items
- Creating Registered User Menus
- Creating Submenus
Creating Registered User Menus
When a menu module is set to Registered, the menu and all menu items are viewable only by registered users after they log into the site. By creating a user menu, you can have menu items to add or edit content, modify user profiles, and so on, that are available only to this user.
Before users can log in, however, the site needs a front end login form. In this section, you will:
- Create a Login Form module for registered users.
- Create registered user-only menu items.
- Create a User Menu module with an access level of Registered.
- Add menu items to the user menu.
To create a login form:
- Choose Extensions > Module Manager.
The Module Manager opens, displaying all the current modules created and installed on the site (Figure 4.70).
Figure 4.70 The Module Manager
- Click New.
The New Module page opens. This page displays all the module types you can create for your site (Figure 4.71). You can also install third-party extensions, some which may expand this list by adding additional module types. See Chapter 6, “Extending Your Site.”
Figure 4.71 The module types you can create
- Click the Login radio button, and then click Next.
The Login module creates a login form so that a user can log in to the front end of the web site.
The Module Edit page opens with the details, menu assignment, and parameters specific to the Login module.
- In the Details area, type Login Form in the Title field.
- Make sure the Position is set to Left, and leave all other fields at their defaults for now (Figure 4.72).
Figure 4.72 Login module details
- In the Menu Assignment area, select the “Select Menu Item(s) from the List” radio button for Menus.
You want this module to appear only on the home page, so you are going to choose the Home menu item from the list.
- Select the Home menu (Figure 4.73).
Figure 4.73 Selecting a menu assignment
- Set any login form parameters (Figure 4.74).
Figure 4.74 Login form module parameters
- Click Save, and then click Preview.
A login form is created and appears on the home page for users to log in (Figure 4.75).
Figure 4.75 The login form on the home page
To create an article submission menu item:
- Choose Menus > Recipes Menu.
- On the Menu Item Manager toolbar, click the New icon.
- Choose Internal Link > Articles > Article > Article Submission Layout.
Creating an Article Submission menu item creates a submission form page for users with Author, Publisher, or Editor access level to submit articles.
- In the Title field, type Add a New Recipe.
- Leave all other fields in the Menu Item Details area at their defaults (Figure 4.76).
Figure 4.76 Article submission layout menu item details
There are no basic or advanced parameters for an article submission form. The component and system parameters are the same as other layouts.
- Click Save, and then click Preview.
- In the Login form, type admin as the user, and then type your administrative password (Figure 4.77).
Figure 4.77 The login form on the web site
- Click the Login button.
The user is logged in, and the greeting appears where the login form was (Figure 4.78).
Figure 4.78 The login form after a user has logged in
- From the Recipes menu, click the “Add a New Recipe” link.
You are now logged in and can create a recipe (submit an article).
An example of the article submission menu item layout is shown in Figure 4.79.
Figure 4.79 The submission form web page
To create a user menu module:
- Choose Menus > Menu Manager.
- From the Menu Item Manager, click New.
- Set the Menu New page fields as shown in Figure 4.80:
- Unique Name: usermenu
- Title: User Menu
- Description: This is a user details menu.
- Module Title: User Menu
Figure 4.80 Create a new user menu
- Click Save.
- Choose Extensions > Module Manager to open the Module Manager.
- Click the User Menu.
The User Menu Editor opens.
- In the Details area, click the Yes radio button for Enabled (Figure 4.81).
Figure 4.81 Enabling the User Menu
- Click Save.
To create an author details menu item:
- Choose Menus > User Menu.
- From the Menu Item Manager, click New.
In this procedure, you will add a way for the front end authors to edit their account details, such as password, language, name, and so on.
- Choose Article > User > User Form Layout.
The User Form Layout page enables users to edit their account information (Figure 4.82).
Figure 4.82 User form layout details
- In the Title field, type My Details.
This title is the menu link. Leave the Alias field blank. This is filled in automatically by Joomla.
- Choose User Menu from the “Display in” drop-down menu.
- In the Access Level list, select Registered.
- Click Save, and then click Preview.
The User Menu appears, displaying a link to the user details. You need to be logged in to see this menu (Figure 4.83).
Figure 4.83 The user menu
- Click the My Details link.
The Edit Your Details page opens, where you can modify your user settings (Figure 4.84).
Figure 4.84 The Edit Your Details page
To create a web link submission menu item:
- Choose Menus > User Menu.
- From the Menu Item Manager, click New.
- Choose Web Links > Web Link > Web Link Submission Layout.
The Web Link Submission Layout page creates a form through which users can submit web links to the front end of the web site (Figure 4.85).
Figure 4.85 Web Link Submission Layout page
- In the Title field, type My Interesting Links.
- In the Access Level list, select Registered.
- Click Save, and then click Preview.
Your web link submission menu link is now the second item on this menu. Clicking the link opens the Submit A Web Link form (Figure 4.86).
Figure 4.86 Web submission form