Create 'User' menu items

Menu items can link to other things besides articles. In this tutorial we are going to create a set of menu items that link to the various user functions, such as logging in, registering and obtaining a password reminder. We will also create a menu item to allow an administrator to create an article. This will become very useful because it will add the ability to create articles from the Front End. By assigning them to a category we can make them display in the category blog we set up in the previous lesson. 

There are a number of things to consider. Firstly the menu structure is nested. We first need a top level menu item called 'User'. This acts as a container for the menu items below it. If your template supports drop down menus then it will be viewed as such, if not you will probably see it as a nested list.

Secondly we need to assign Access Permissions to some of the items. For instance we would probably want to make sure not everybody can create articles. There will be more on permissions and user management later. First lets create our user menu items.

The first thing we need to do is create a top level menu item called 'User'.

Go to menus/main menu/add new menu item 

This really is just a container for the nested items, so for menu item type select text separator.

Give the menu the title 'User' and press Save and New. 

Now lets create some nested menu items.

Lets link this menu item to our login page. To do this select Login Form for Menu Item Type.

We can name this simply 'Login' and to nest the menu item set Parent Item as User.  

 nesteMIt

In the right pane of Add Menu Item (Login Form) window you add text and images to the login form as well as assign the pages the user is redirected to after they log in or log out.

We can proceed in an identical way to create menu items for a registration page remembering to select User for the Parent Item.

The remainder of the Users Manager menu items are for users that have already registered. Although Public users will not be able to view these pages it is best practice to hide the menu items to Public users (any one that has not registered) To do this in the Access selection box select Registered. Do this for the User ProfileEdit User ProfileUser Name Reminder Requestand Password Reset menu items.

accessReg

Finally we are going to create an Create Article menu item under the users menu. Simply create a new menu item and give it the menu item type of Create Article. (Under Articles in the Select Menu Item Type window.).  

We want the article to appear in one of the category blogs we created last tutorial. So set the category of the Create Article menu item to this category (eg Mains). 

Set its Parent Item to User. This means it will become a sub menu of User.

Set its Access to Special so only a Super Administrator (currently you, as the creator of the site) will see the menu item. 

Finally we are going to set the Template Style to Atomic-Default. This is because the Article Editor may clash with the current template style. We want to create our article as easy as possible and do not want the screen cluttered with the layout and style of the rest of the front end. Atomic is Joomla's 'bare bones' template.

The completed New Menu Item window should look like this:

adRecMen


Now go to the Front End of your site and check your user menu. If all went according to plan you should be able to add a articles to your category blog.