Plan a course with connected notes
Put lessons and modules in two collections, connect each lesson to its module, and let Totals count the lessons and add up their minutes. About fifteen minutes.
Goal: a course plan where every module lists its lessons, how many there are and how many minutes they take. Time: about fifteen minutes. Plan: every plan. Before you start: have a few notes for lessons, for example "Welcome", "Your first sketch" and "Light and shadow". See Organise notes with collections if collections are new to you.
1. Make the two collections
Make a collection called "Lessons" and put your lesson notes in it.
Make a second collection called "Modules" with two notes, "Basics" and "Colour". You can also make it from the field form in the next step, with Or make a new collection.
2. Give each lesson a length
Open Lessons, choose Edit and go to the Fields tab.
Choose Add a field, type "Minutes", choose Number and choose Add field.
Open the table of Lessons and type the minutes of each lesson: 10, 20 and 15.
3. Connect lessons to modules
In the Fields tab of Lessons, choose Add a field again and type "Module".
Choose the kind Connected notes and, under Connect to notes of, choose Modules.
Leave "Also show it in Modules" on. The other side is called "Lessons"; keep that name.
Choose Add field. Modules now has a field called Lessons too.
4. Put each lesson in its module
In the table of Lessons, click the Module cell of "Welcome".
Choose "Basics" in the list, then Done.
Do the same for "Your first sketch" (Basics) and "Light and shadow" (Colour). With the keyboard, type the first letters, press the Down arrow and press Space.
Open the table of Modules: "Basics" shows the chips "Welcome" and "Your first sketch". Click a chip to open that lesson.
5. Count the lessons and add up their minutes
In the Fields tab of Modules, choose Add a field, type "Lessons count" and choose Total.
Keep Count: the sentence reads "Count the notes in Lessons". Choose Add field.
Add one more Total, "Total minutes", choose Add up and check the sentence: "Add up Minutes of the notes in Lessons". Choose Add field.
The table of Modules now shows Basics with 2 lessons and 30 minutes, and Colour with 1 lesson and 15 minutes. Change a lesson's minutes and the Total follows.
6. Optional: show the plan on your site
To show the course plan to visitors, switch on Lessons, Lessons count and Total minutes for visitors and put a view of Modules on your site; see Show a collection as a table or board on your site. Visitors see only the lessons they can open, and the Totals count only those.
What you learned
A Connected notes field connects notes of two collections, and shown both ways it appears on both sides.
A Total counts connected notes or adds up one of their numbers, and updates by itself.
Read Connected notes and Totals for one-way fields, deleting, and what happens when a note moves or becomes private.