Learnir Dashboard

Course Content Schema

The content schema is a JSON file that defines the structure of the content that will be stored in the learnir database.

The schema is a variety of:

  1. form fields &
  2. database applied fields

Some of these fields are required, and some are optional.

Default Fields

At a default you will see a list of fields that are required - and by editing the schema - you can extend it to add more fields. Required fields are currently the default on creating a course.

You will be notified if you make any changes to required fields when you click on the apply schema button.

Extending Fields

  1. As you might have seen the fields are self explanatory.
  2. An array of objects - simply add your new object to extend the schema - & apply.
  3. An object of three properties - name, type & render.
{
  "name": "image",
  "type": "string",
  "render": "image" // or "video" or "audio" or "richtext" or "files"
}
Field Properties
  1. name - a unique property value name
  2. type - a primitive programming data type - (array, object, boolean, string, number)
  3. render - what learnir field to render for editing this data - (input, video, Image, audio, richtext or files)

These are the default fields that are required or available as of now April 2024.