How to Create a Menu Item for an OSCampus Class

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:

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

Create new menu item button

  • 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:

Select button

  • In the Menu Item Type modal, click OSCampus Pro.
  • Then select Single Class URL:

Single Class URL link

  • 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:

Display in menu parameter

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:

URL link

  • In the Link field, enter index.php/classes/class-1/, replacing class-1 with the Alias of your OSCampus Pro class.
  • Click Save or Save & Close:

Single class URL

Now, when you visit your site's front end and click the new class menu item, you’ll see the class front page:

Class front-end page