Skip to content

Creating a new lesson

Martin Quinson edited this page Oct 3, 2014 · 4 revisions

You can create a brand new lesson in a few steps:

  1. Create a new package in lessons. The following uses mylesson as lesson name, but you should be more original if possible. Then, add a Main class in the package mylesson:
public class Main extends Lesson {

	@Override
	protected void loadExercises() {
	   /* the list of exercises will come here when defined */
	}

}
  1. Describe your lesson in the file lessons/mylesson/Main.html. This should be done in english if you want to get it merged back into the PLM project, but there is no obligation to merge it. You are perfectly free to develop lessons for your own usage if you don't feel like contributing back to the project, in which cas you are naturally free to use the language of your choice.

  2. List your Main.html file in the po4a.conf configuration file so that it becomes translatable, and use po4a to translate it to other languages (see also PLM-Hacker-documentation).

  3. You now have an empty lesson. You probably want to populate your lesson by Adding a new exercise.

  4. Afterward, you may want to [ship your lesson](Shipping a modified lesson) to the pupils.