Table Of Contents
Overview
In this section, we will learn how to create menu items to access JomDirectory.
Menus are used to control website navigation and are a set of menu items. Menu items provide the navigational experience to your users. The menu items in our case must point to the JomDirectory.
Creating Administration Menu Links
Go to the System -> Administrator modules and insert new. Than choose Administrator Menu. From the presets, select Comdev and place it under menu position. Do the same for the JomDirectory:
Creating Menu Items to access JomDirectory
To create menu items with Items menu item type, do the following:
- Click Menus > <your_menu> > Add New Menu Item.
Provide a title in our case is Latest Listings in the Menu Title field. Now, since the Latest Listings menu item provides a list of all the latest postings on the site, we have selected the menu type as Items. The Alias field will build URL for the site. When a search is done this will be the landing page for the search results as well.
- Provide the options as seen in the following image:
Screen 3: Items menu item screen
Provide the values based on the following table.
Field
Value
Menu Item Type
Click Select. A pop-up is displayed. In this case, since we are creating the Items menu item, click Directory > Items from the list.
Category
Select the appropriate category if creating direct category link.
Address
Select the appropriate address if, creating direct address link.
Link
This field is auto-populated based on the menu item type selected.
Target Window
Select the parent for this menu item.
Template Style
Select the template style you want for this menu.
Click Save.
Ensure that you see a green tick next to this menu item. The green tick indicates that the item is published. To publish an item, select the checkbox next to the item and click Publish.
To view the created menu item, go the front end of your site. The new menu item and it's alias is displayed and will be used for search results:
If you called it - Latest Items than search results page will be www.mydomain.com/latest-items.
If you do not create this menu search results URL will be: www.mydomain.com/components/jomdirectory
Create menu links for each category
It is very important to notice that listing details and proper URL's does not build if the category menu is missing (each category must have a link). You have to ensure that for each category on your site, you create a corresponding link in the Joomla menu. The best approach is to create a separate Joomla menu e.g. Categories and link each category there.
Creating Menu Items to access the Category Tree
The categories created in the component can be seen in the following format on the site depending on the layout selected.
Screen 1: Category page screen
For the Category screen to appear in your required format, you can edit the JomDirectory settings for that Menu item. The options seen for JomDirectory settings are as follows.
Screen 2: Category Tree menu item screen
The following table explains different options that you can edit.
Field | Value |
---|---|
Columns Count | Choose number of columns to be displayed |
Choose to show Products or Listings | |
Start level | Choose start level category to be displayed |
Enable Image | Enable category images that are displayed |
Enable Count | Enable item count |
Enable Subcategories | Enable to show subcategories |
Enable Category Index | Enable to display category index |
Choose Layout | Select from the following layout options:
|
Category Image Width | Define the category image width in pixels |
Category Image Format | Select from the following format options:
|
Creating Menu to access JomDirectory Front Admin
To create menu items with Front Admin menu item type, do the following:
- Click Menus > <your_menu> > Add New Menu Items.
- Provide a title as Front Admin and the alias as front-admin in the Menu Title field.
- Provide the options as seen in the following image:
Screen4: JomDirectory Front Admin menu item screen - Click Save.
Front Admin Options
For the Menu to be able to access the JomDirectory Front Admin, certain settings need to be made. The following table shows the three menu links that need to be made and linked with JomDirectory Options. You can create these 3 menu items anywhere on the site e.g. link them under User Menu.
Setting | Description | Procedure | Screenshot |
---|---|---|---|
Profile Edit Menu Link | This link should point to Edit profile menu item created using Edit User Profile menu item type. |
| |
Admin Menu Link | This link should point to the login form menu item created using Login Form menu item type. |
| The following image shows how the Login Form menu item is used . When a user is not logged into the front page, he will be redirected to the built-in Joomla login form. After successful login, he will be redirected to the JomDirectory Front Admin.
In our example, we are using the http://domain.com/front-admin URL as shown in the following image where front-admin is the alias of the JomDirectory Front Admin Menu Link: |
Profile View Menu Link | This link should point to the user profile created using User Profile menu item type. |
|
Now link menus with JomDirectory Options:
Make the following settings for the Front Admin are made in the JomDirectory options for the user to be redirected correctly to the Front Admin, when he is not logged in.
- Click System > Control Panel.
- Under Extensions, click JomDirectory.
- Click Options in the top right-hand corner of the screen.
- Click the Front Admin tab.
- Change the Profile Menu Link, Login Menu Link, and View Profile Menu Link field as per the following image.
Screen5: JomDirectory Front Admin options - Click Save.
The Front Admin lets users add listings in the front of the site. For more information about how to add listings, see Front Admin. The following image shows the Front Admin.
Screen 6: Front Admin screen