How to Edit a Class Difficulty Level in OSCampus

Out of the box, you will see the following levels of difficulty in your OSCampus Pro classes:

  1. Beginner.
  2. Intermediate.
  3. Advanced.

In this tutorial, you will learn how to change texts of these three levels to your own.

Firstly, you need to know where OSCampus displays a class difficulty level.

Then, you will learn how to quickly edit it using the Language Overrides technique.

For the purpose of this tutorial, you will be overriding the English (GB) language strings.

If your site runs on a different language, simply use this language instead of the default English (GB). 

Step #1. Where OSCampus displays the difficulty levels 

You will see a difficulty level in OSCampus in four places:

1. On the frontend page displaying the list of classes:

list of classes

2. On the frontend page displaying a single class:

frontend page for single class

3. On the backend page displaying the list of classes:

backend list of classes

4. On the backend page displaying a single class:

backend single class

Step #2. How to edit a class difficulty level

Use Joomla's Language Overrides interface to change a difficulty level text.

You need to create three overrides: one - for the backend and two - for the frontend.

Let's get started.

  • In your Joomla control panel, go to Extensions > Language(s) > Overrides:

click overrides

  • Set the Filter to English (en-GB) - Administrator:

set the filter to adminstrator

  • Click the New green button in the top left corner.

You will be taken to the Create a New Override screen. Make sure the Location setting displays Administrator:

location administrator

Next, let's find the Beginner backend string and amend it.

  1. Make sure the Search For parameter displays Value.
  2. Enter Beginner into the Search box.
  3. Click the Search button:

enter beginner click search

  • You will see Search Results. Click anywhere on the box with the COM_OSCAMPUS_COURSE_DIFFICULTY_BEGINNER string:

click on com oscampus string

  • You will see that the Language Constant and Text fields got populated:

language constant and text fields populated

  1. Edit the Beginner text to your own. For the purpose of this tutorial, I used Novice.
  2. Click inside For Both Locations checkbox.
  3. Click Save & Close:

enter new text, check the box

  • You will see your new language override listed:

new language override listed

Good job! Now let's check this new text at work, both at backend and frontend.

  • Still in your Joomla backend, go to Components > OSCampus Pro. You will see the OSCampus Pro: Classes list screen with your new text in the Difficulty column:

new text at work in backend

  • Click on a class title. You will see the new text displayed for the individual class here at the backend:

new text on a class setting screen

  • Now go to your frontend page, that lists your classes. You will see this new text there also now at work:

new text on the classes frontend list

Good job! You are almost there. You just need to change the text displayed on the frontend class page.

  • If you check your single class page at the frontend, you will see that it still displays Beginner for the difficulty:

beginner for class frontend page

  • Go again to Extensions > Language(s) > Overrides. Make sure your filter is set to the Site.
  • Enter again Beginner into the Search box and click the Search button.
  • You will see the Search Results dropped down underneath. Click on the COM_OSCAMPUS_DIFFICULTY_BEGINNER:

search results click on the bottom string

  • Replace the Beginner to Novice in the Text field and click Save & Close:

change beginner to novice

  • Now, check a single class frontend page. You will see the Beginner has been nicely replaced with Novice:

novice for the single class frontend page

What's Next?

Save over 60% when you sign up to the Everything Club today! You will get access to OSCampus Pro as well as all our other extensions, templates, and Joomla training.