Creating a menu item linked to your OSCampus Pro training class is straightforward. However, this process is a little different from the usual method in Joomla.
Typically, you create a menu item for a page in a single step. In contrast, creating an OSCampus Pro menu item for an online training class involves two steps:
- Create a menu item using the Single Class URL menu item type. OSCampus Pro will use this as the base URL for all your class links.
- Create a second menu item using Joomla’s core URL menu item type to link to a specific class.
Step 1: Create a Hidden Base Menu Item Using the Single Class URL Type
- Go to Menus > (your menu) and click the plus icon:
- You’ll see the Menus: New Item screen. Enter a clear, descriptive title. For this example, we'll use "Single Class Base URL".
- In the Alias field, enter
classes
. - Click Select to choose the menu item type:
- In the Menu Item Type modal, click OSCampus Pro.
- Then select Single Class URL:
- You’ll now see the Menu Item Type and Link fields populated.
- Click the Link Type tab.
- Set the Display in Menu option to No, as shown below:
- Click Save or Save & Close to finish:
Great! You've now created the base classes
URL for your OSCampus Pro component.
Step 2: Create a Menu Item Using the URL Type
- Go to Menus > (your menu) and click the plus icon.
- On the Menus: New Item screen, enter a title in the Menu Title field.
- Click Select to choose the menu item type.
- In the Menu Item Type modal, click System Links.
- Then click URL:
- In the Link field, enter
index.php/classes/class-1/
, replacingclass-1
with the Alias of your OSCampus Pro class. - Click Save or Save & Close:
Now, when you visit your site's front end and click the new class menu item, you’ll see the class front page: