StoreSpan
Blocks

Use a block in an injectable

Make a block the content of an injectable, see every injectable that uses a block, and bring their values back in line with the block.

Once a block exists, you use it by choosing it as the content of an injectable. The injectable then decides where and when the block shows. The block decides what shows.

Before you start

You need at least one active block. See Create a block.

Choose a block as the content

  1. Open the injectable, or create one. See Create an injectable.
  2. In the Content card, open the content source list. It starts on Inline content.
  3. Choose the block by name.
  4. Save the injectable.

The Content card of an injectable with a block chosen as its content

The editor is replaced by a note: This injectable renders the selected block. Editing the block updates every injectable referencing it; this form only picks which block to use.

The list shows active blocks only. It does not appear at all while your store has no blocks.

To go back to the injectable's own content, choose Inline content.

Want to fill in the block's variables?

An injectable that uses a block this way takes the block as it is, with the block's default values. To give each injectable its own values, use a Blocks injectable. See Combine several blocks.

A mega menu can use a block too. In a submenu, add a block of content and choose the saved block.

What changes on the injectable

Part of the injectable formWith a block chosen
Content editorReplaced by the note above. Edit the content in the block.
Live previewNot shown. See See a block before it goes live.
DesignShows a note. The block's kind decides the styling. See How a block is styled.
Placement, targeting, scheduleWork as for any injectable.

When you change the block later

Every injectable that uses the block changes with it. See What saving does.

The Used by panel

Open a block and scroll below the form. The Used by panel shows every place the block is used, so you know what a change will reach.

The Used by panel of a block, listing the injectables that use it and what each one changes

Part of the panelWhat it shows
The summary lineHow widely the block is used, such as Used by 1 injectable · 1 place.
One row for each injectableIts name, its status and which of the block's values it sets itself, or follows everything. Open takes you to it.
See differencesThe values that injectable sets itself, next to the block's own.
Compare allA table of every variable across every injectable that stacks the block. follows means the injectable uses the block's value.

Archived injectables are not listed. When nothing uses the block, the panel says No injectables use this block yet.

Bring injectables back in line

An injectable that stacks blocks can set its own value for a variable. See Combine several blocks. After you change a block's default, such an injectable keeps the value it set. To make it use the block's value again:

  1. To see the values first, press Compare all.
  2. Press the button of the variable, such as Reset "minimum" in 1 injectable…
  3. Press Confirm reset.

A message confirms the reset and offers Undo.

Undo may not restore every value

Undo puts back the values it can. It cannot restore a value in three cases: you removed the block from that injectable, the value no longer suits the variable, or someone saved the injectable in between. The message tells you how many values it restored.

On this page