Creating and editing a block
The block form card by card, saving, duplicating, and what the messages mean.
Open Storefront › Blocks and press New block, or open an existing block from the list. Both show the same form.
Details
Name is required. Description is a free note for your team.
Content
Content type picks the kind of block, and the editor for that kind appears under it. The editors are the same ones the injectable form uses; see Content types for each one's fields. A short note under the editor reminds you what saving does: Saving a block updates every injectable that uses it — active injectables pick the change up within about a minute. Archiving a block stops every injectable still using it from serving.
Variables
For HTML & CSS and Template blocks this card lets you declare variables. See Variables. For other kinds it says Typed variables are available for HTML & CSS and Template blocks. Pick one of those content types to declare variables.
Buttons
- Create block (new) or Save changes (existing).
- Duplicate: makes a copy of the last saved version, not of unsaved edits. The confirm prompt says so. The copy is active, has a copy suffix on its name, and needs no publish step of its own.
- Archive, or Re-activate when the block is archived. See Archiving and other rules.
Under the form, an existing block shows the Used by panel. See Using blocks in injectables.
Messages
- The block was saved., The block was created., A copy of the block was created., The block status was changed.
- A name is required.: the name field is empty.
- This block was changed elsewhere since you opened it. Reload the page…: someone else saved the block while you had it open. Reload and apply your change again.
- The block change could not be completed. Please try again.: a general failure.
Saving may also refuse the content itself. The reasons are listed on the Variables page.