Publishers of technology books, eBooks, and videos for creative people

Home > Articles

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

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:

  1. 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

    Figure 4.70 The Module Manager

  2. 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

    Figure 4.71 The module types you can create

  3. 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.

  4. In the Details area, type Login Form in the Title field.
  5. Make sure the Position is set to Left, and leave all other fields at their defaults for now (Figure 4.72).
    Figure 4.72

    Figure 4.72 Login module details

  6. 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.

  7. Select the Home menu (Figure 4.73).
    Figure 4.73

    Figure 4.73 Selecting a menu assignment

  8. Set any login form parameters (Figure 4.74).
    Figure 4.74

    Figure 4.74 Login form module parameters

  9. 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

    Figure 4.75 The login form on the home page

To create an article submission menu item:

  1. Choose Menus > Recipes Menu.
  2. On the Menu Item Manager toolbar, click the New icon.
  3. 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.

  4. In the Title field, type Add a New Recipe.
  5. Leave all other fields in the Menu Item Details area at their defaults (Figure 4.76).
    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.

  6. Click Save, and then click Preview.
  7. In the Login form, type admin as the user, and then type your administrative password (Figure 4.77).
    Figure 4.77

    Figure 4.77 The login form on the web site

  8. Click the Login button.

    The user is logged in, and the greeting appears where the login form was (Figure 4.78).

    Figure 4.78

    Figure 4.78 The login form after a user has logged in

  9. 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

    Figure 4.79 The submission form web page

To create a user menu module:

  1. Choose Menus > Menu Manager.
  2. From the Menu Item Manager, click New.
  3. 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

    Figure 4.80 Create a new user menu

  4. Click Save.
  5. Choose Extensions > Module Manager to open the Module Manager.
  6. Click the User Menu.

    The User Menu Editor opens.

  7. In the Details area, click the Yes radio button for Enabled (Figure 4.81).
    Figure 4.81

    Figure 4.81 Enabling the User Menu

  8. Click Save.

To create an author details menu item:

  1. Choose Menus > User Menu.
  2. 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.

  3. Choose Article > User > User Form Layout.

    The User Form Layout page enables users to edit their account information (Figure 4.82).

    Figure 4.82

    Figure 4.82 User form layout details

  4. 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.

  5. Choose User Menu from the “Display in” drop-down menu.
  6. In the Access Level list, select Registered.
  7. 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

    Figure 4.83 The user menu

  8. Click the My Details link.

    The Edit Your Details page opens, where you can modify your user settings (Figure 4.84).

    Figure 4.84

    Figure 4.84 The Edit Your Details page

To create a web link submission menu item:

  1. Choose Menus > User Menu.
  2. From the Menu Item Manager, click New.
  3. 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

    Figure 4.85 Web Link Submission Layout page

  4. In the Title field, type My Interesting Links.
  5. In the Access Level list, select Registered.
  6. 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

    Figure 4.86 Web submission form

  • + Share This
  • 🔖 Save To Your Account