Content model · Lesson 4 of 15 · 10 min

Add entries and assets

Write one real course with three lessons, upload an image, and learn what Draft, Changed, and Published mean.

A model with no content is hard to build against. Add enough real content to see the site take shape.

1. Add an author

Go to Content → Add entry → Author.

  • Name: your name
  • Role: whatever fits, like Developer
  • Photo: click Add media → Add new media, upload a square photo, and fill in its Description. Publish the asset.

Click Publish on the author.

2. Add three lessons

Add three Lesson entries. Use real topics you could teach in a few paragraphs. For each one:

  • Title, and let the Slug fill itself in
  • Summary: one sentence
  • Minutes: a number
  • Body: two or three paragraphs. Use a heading, a bold phrase, a list, and a link so you can see them render later.
  • Author: pick the author you made

Publish two of them. Leave the third as a draft. You’ll use it to test previews in lesson 12.

3. Add a course

Add a Course entry:

  • Title and Slug
  • Summary
  • Level: pick one from the dropdown
  • Lessons: click Add content → Add existing content and add all three lessons. Drag them into the order you want.

Publish the course.

The three states

Every entry and asset has a status. Your site’s behavior depends on it.

Status Meaning Delivery API Preview API
Draft Never published Hidden Visible
Published Live Visible Visible
Changed Published, with newer unpublished edits Shows the last published version Shows the newest version

That table is the whole idea behind having two APIs. The live site reads the Delivery API and never sees unfinished work. The preview site reads the Preview API and sees everything.

Notice your course links to a draft lesson. The Delivery API will leave that lesson out. You’ll handle that on purpose in lesson 7.