In this article, we will show you how to create "My Account" area in DJ-Classifieds. This tutorial consists of 4 main steps.
In Joomla backend go to:
Menus -> Manage -> Add New Menu
In our example, the menu is called "Account Dashboard".
Let's start with the user's profile view. In the Joomla backend, go to:
Menus -> [menu name] -> Add New Menu Item
The key parameter is the type of menu item. To assign a user profile view you need to select "DJ-Classifieds -> User profile". Remember to add the new menu item to the appropriate menu, in our case it is "Account Dashboard".
In addition to the user profile, DJ-Classifieds allows you to display many other views that may be useful for users of your website:
- User items - displays all ads submitted by the user.
We repeat this step for each of the above views that we would like to add to the menu.
In our example, the complete list of menu items in "Account Dashboard" looks like this:
In the Joomla backend, go to:
Extensions -> Modules -> New -> Menu
Remember to select the appropriate menu and assign it to the appropriate subpages.
We assign our menu to all previously created menu items so that the menu is visible for each of them in the left column:
The point is that the user, after logging in, can easily access the user's account.
It's a good idea to put such a shortcut e.g. in the main or top menu.
In our example it will be the "Topbar" menu.
In the Joomla backend, go to:
Menus -> [menu name] -> Add New Menu Item
This time, we choose "Menu Item Alias" as the menu item type, which leads to the "My profile" menu item, previously created in the "Account Dashboard" menu. It is also worth setting "Access" to "Registered", thanks to which the item will be visible only to logged in users.
In this way, the user, after clicking on "My Account", will be redirected to his profile, and the "Account Dashboard" menu will be visible in the left column: