Skip to content

How to create a custom block

This guide explains how to design a block layout in the Block Composer from scratch, including drawing custom areas, using presets, adding rows, and assigning CMS elements.

Prerequisites

  • The tutorial Getting started is complete — you know how to reach the Block Builder and create a block.
  • Admin role with at least ssd_custom_block.creator permission.

Using a layout preset

Presets are the fastest way to start:

  1. Open the create page (Content > CMS Block Builder > Create Block).
  2. After filling in the settings card, scroll to the Block Composer card.
  3. The empty state shows preset cards. Choose one:
PresetGrid layout
1 ColumnFull width — one slot spanning all 12 columns
2 ColumnsTwo equal 6-column slots
Sidebar LeftA narrow 4-column left slot and a wide 8-column right slot
Sidebar RightA wide 8-column left slot and a narrow 4-column right slot
3 ColumnsThree equal 4-column slots
4 ColumnsFour equal 3-column slots
  1. Click a preset to apply it. The grid shows the placed areas immediately.

Block Composer empty state with layout preset cards

Drawing a custom area

For a layout that no preset covers:

  1. Position your pointer over an empty cell in the grid. The cursor changes to indicate you can draw.
  2. Click and hold the mouse button on the starting cell.
  3. Drag to the ending cell — a blue highlight shows the area being drawn. A size label (e.g. 6×2) appears in the preview.
  4. Release the mouse button. If the area does not overlap any existing slot, it is placed and the element picker opens.
  5. Select a CMS element in the picker.

Tip: Areas can span multiple rows as well as columns. Draw downward to create a taller slot.

Adding or removing rows

The grid starts with 4 rows. To extend it vertically:

  • Click Add Row below the grid to append one row.
  • Click Remove Row to delete the last row, provided no area occupies it.

Row controls are only available on the Desktop tab and are disabled when the block is in use on a page (structure locked).

Assigning an element to a slot

After drawing an area, the element picker opens automatically. You can also open it later by clicking on an existing area.

The picker shows thumbnail previews of every available CMS element registered in your shop — including elements from other plugins. Click a preview to assign that element type.

To swap the element in an existing slot, hover over the area and click the swap icon that appears.

Block Composer with areas drawn and elements assigned

Clearing the layout

To start over on the Desktop tab, click Clear All in the toolbar. This removes all areas and slot assignments.

Note: Clear All is only available on the Desktop tab. Tablet and Mobile layouts can be reset independently by removing individual areas on those tabs.

Saving the block

Click Save. The plugin validates:

  • Block Name and Technical Name are not empty.
  • Technical Name is unique (not used by another custom block or a registered Shopware block).
  • Every area has an element assigned.

If any check fails, a warning notification identifies the issue. Fix it and save again.

What happens after saving

  • The block is written to the ssd_custom_block database table.
  • The CMS block picker in Shopping Experiences registers the new block under the category you chose.
  • The block is available immediately — no cache clear required.

Your Vision. Signed, Sealed, Delivered.