Today your page gets a list.
A list is the tidy way to show four favourite things without writing four sentences.
By the end of the lesson your page will have:
A list needs two kinds of block.
Four things in your list means one list block and four item blocks.
Both of them live in the List group, not in Content.
Your list needs a name, so a reader knows what it is.
This is the block you need:
{"blocks": {"languageVersion": 0, "blocks": [{"type": "wp_heading", "fields": {"TEXT": "My Top Four", "COLOUR": "default", "SIZE": "normal", "ALIGN": "left"}}]}}Check: your new heading is at the very bottom of the page.
Now the list itself. Watch the page carefully when you add it.
This is the block you need:
{"blocks": {"languageVersion": 0, "blocks": [{"type": "wp_list"}]}}Check: nothing appeared. That is not a mistake and you have not broken anything. The list is there, but it is empty, and an empty list has nothing to show.
Give the list something to hold.
This is the block you need:
{"blocks": {"languageVersion": 0, "blocks": [{"type": "wp_list", "inputs": {"ITEMS": {"block": {"type": "wp_list_item", "fields": {"TEXT": "Pancakes"}}}}}]}}Check: one thing shows in your list.
If it did not work: nothing appeared, so the item is beside the list rather than inside it. Look for it sitting on its own and drag it in.
You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.