repository

BlowfishCMS

A small content management system for OpenBSD

version 0.45.6 · ISC · 2026-12-03 · releases

118 lines · 5.3 KB · view it drawn · download this file

# Courses

Free courses on your site, for anyone to follow at their own pace. You write
each course as one Markdown document: its units, a page per week (or lesson),
each with its lectures, reading and exercises to tick off, an assignment and
what to hand in, plus a guide and a list of the materials it uses. Learners
tick things off, score their assignments against your rubric, keep notes and
hours, and see how far they've come. Their progress stays in their own
browser.

| | |
|---|---|
| Version | 1.0.0 |
| Needs | BlowfishCMS 0.42.0 or newer |
| Connects to | nothing |
| Runs as | the public and admin services |
| Keeps | the courses in the catalogue; each learner's progress only in their own browser |

## Switching it on

Install **Courses** on **Site → Add-ons** and switch it on. It adds:

- a **Courses** tab, where you add and edit courses;
- a **Courses** page at `/courses/`, listing the published ones. It starts
  off: turn it on in **Pages** when you have a course to show;
- each course's pages at `/x/course/ADDRESS/`: the course, a page per week
  or lesson (`/x/course/ADDRESS/1/`), its guide (`…/guide/`) and the
  learner's progress (`…/progress/`). They work whether or not the Courses
  page is on.

Two blocks for any page: **Courses** (the list) and **Course** (one course:
the learner's progress, and its units and lessons).

## Setting it up

1. On the **Courses** tab, under **Add a course**, give it a **Title**
   (and an **Address**, or one is made from the title), choose its Markdown
   file if you have one, and press **add course**. It starts hidden.
2. In its editor:
   - **Summary**: a sentence or two for the list of courses.
   - **Hours a week**: the expected time, for the learner's pace and hours.
   - **Pass mark** and **Self-assessment rubric**: one part a line,
     `Correctness | 40`, the weights adding up to 100. Leave the rubric
     empty for no scoring.
   - **Materials**: one a line, `Name | https://… | words to look for`.
     Any lecture or reading line containing one of the words gets a link to
     it (without words, the name is looked for). Leave the address out for
     a book.
   - **The course text**: the Markdown, written as below, or a file.
3. Press **save**. **What it has** shows the units, weeks and assignments it
   found, and warns about anything odd (a week number used twice, a week
   without an assignment).
4. Switch on **published** in the list of courses, and **view ↗** it.

### Writing a course

```markdown
# Course title

**Duration:** 12 weeks              ← facts, shown at the top
**Level:** Beginner

# 1. How to Use This Course         ← a guide section: any Markdown

# 2. Phase I — Getting Started      ← a unit: a section with weeks in it
**Weeks 1–6**                       ← (counted for you; this line is left out)
What this unit covers.

## Week 1 — First Steps             ← Week, Lesson, Module, Session, Day,
                                      Class or Chapter, and its number
**Lectures**                        ← a checklist: any bold label on its own
- CS50x: Week 0.
**Reading**
- Chapter 1.
**Exercises**
- Try the examples.

**Assignment: Hello**               ← the assignment (or **Assignment:** text)
Write a program that prints a greeting.

**Deliverable:** The source and its output.

**Unit assessment:** …              ← any other "**Label:** text" is a note
```

Numbers are the pages' addresses (`/x/course/ADDRESS/1/`), so keep each one
the same once learners have started: their progress is kept by number.

## Day to day

Edit a course's text and save; its pages change at once. Learners' progress
is theirs: they can save it to a file on the progress page and load it in
another browser, or start again.

## Troubleshooting

| What you see | Cause and fix |
|---|---|
| "Give the course a title." | The title is empty. |
| "Address: lowercase letters, digits and dashes…" | Use only `a`–`z`, `0`–`9` and `-`. |
| "Another course is at /x/course/…/." | Two courses can't share an address. Choose another. |
| "Hours a week: a whole number from 0 to 168." / "Pass mark: a whole number from 0 to 100." | Fix the number, or leave hours empty. |
| "Rubric: write each part as “Name \| weight”…" / "…the weights add up to N…" | One part a line, the weights adding up to 100. |
| "Materials: “…” isn't a web address." | The second part of a line must start with `https://` or `http://`, or be empty. |
| "The course file is too large: up to 600 KB." / "…isn't UTF-8 text." | Split the course, or save the file as UTF-8. |
| "Week N appears twice; the second one is left out." | Renumber the second one. |
| "Numbers … have no assignment." | Those weeks have no `**Assignment…**`; that's allowed, and learners mark them finished themselves. |
| "There are no lessons…" | Lessons are `## Week 1 — Title` lines under a numbered section (`# 2. Unit one`). |
| A course's address answers "not found" | It's hidden: switch on **published**. Or Courses is switched off. |
| A lecture line has no link | None of the materials' words is in it. Add a word to the material's line. |

## Limits

- No accounts and no grading by you: learners score themselves, and their
  progress never reaches the site.
- One course text is up to 600 KB (a two-year, 104-week course is about 60 KB).
- Courses are written in the editor or uploaded as a file; there's no
  week-by-week form.