How to Create a Menu Item for an OSCampus Class

Creating a menu item linked to your OSCampus Pro training class is simple. But this task is a bit different from what you are used to in Joomla.

Usually, you create a menu item for a page in one step. In contrast, the task of creating an OSCampus Pro menu item for an online training class consists of two steps.

  1. You create the Single Class URL type menu item
  2. You create an External/Internal URL type menu item for your class.

This tutorial guides you through these two steps.

It assumes:

  • You installed latest OSCampus Pro component
  • You created at least one OSCampus Pro training class

Creating the Single Class URL Menu Item

For the purpose of this tutorial, you will create a Single Class URL menu item in the Main Menu. This menu will have the following configuration:

  • Title: My Class
  • Alias: my-class
  • Display in Menu: No
  • Go to Menus > Main Menu > Add New Menu Item

You will see the Menus: New Item administrative page.

  1. Enter My Class into the Menu Title field
  2. Click Select

Menu Title field and Select button

You will see the Menu Item Type modal box.

  1. Click OSCampus Pro 
  2. Click Single Class URL

Single Class URL menu type

  1. Click the Link Type tab
  2. Find the Display in Menu parameter and set it to No
  3. Click Save or Save & Close

Link Type tab > Display in Menu > No

Excellent! You just created the base my-class/ URL in your OSCampus Pro component.

For the purpose of this tutorial, the site has been installed into the /oscampus/ subfolder. This makes the OSCampus Pro Single Class Base URL index.php/my-class/

Note: Make sure you have the forward slash / at the end of this Base URL.

You can now start using this URL. In the next step, you will take this URL and create a menu item for one of your OSCampus Pro classes.

Creating OSCampus Pro Class Menu Item

For the purpose of this tutorial, I have the following classes in my OSCampus Pro installation:

  1. Title: Test Class, alias: test-class
  2. Title: Test Class 02, alias: test-class-02
  3. Title: Test Class 03, alias: test-class-03

My classes

Let's create a menu item to display the class titled Test Class.

  • Go to Menus > Main Menu > Add New Menu Item
  • Enter Test Class into the Menu Title field
  • Click Select

You will see familiar to you Menu Item Type modal box.

  1. Click System Links
  2. Click URL

System Links > URL

  • Enter /my-class/test-class/ into the URL box
  • Click Save & Close

Class menu item

If we now go to our OSCampus Pro test site and click the newly created Test Class menu, we will see our class called Test Class.

Cass menu item at work