CMS block reference
The Mediaverse CMS block lets you drop video / carousel / hotspot / 360° / 3D content into any Shopping Experience. This page is the technical reference; for the user-facing flow see Shopping Experiences.
Block identifier
Section titled “Block identifier”- Name —
p2lab-cms-mediaverse - Label — “Mediaverse” (translated)
- Category —
video - Sizing modes —
boxed,boxed-stretch,fullwidth
| Slot | Type | Purpose |
|---|---|---|
content | p2lab-cms-mediaverse | The actual media (one slot, one media reference). |
The element type is custom (p2lab-cms-mediaverse) — Shopware does not provide a generic “video” element type, so Mediaverse declares its own.
Slot config shape
Section titled “Slot config shape”Stored in cms_slot.config as JSON. Approximate shape:
{ "mediaverseData": { "value": { "type": "embed | local | panorama | model | splide | hotspot", "source": "youtube | vimeo | ...", "url": "...", "mediaId": "uuid", "playback": { "autoplay": true, "muted": true, "loop": false, "controls": true }, "height": null, "translation": { "de-DE": { "mediaId": "uuid", "url": null } } } }}height overrides the default block height — set to a CSS length (400px, 60vh) or leave null for the theme default.
Templates
Section titled “Templates”The block ships with two storefront templates:
views/storefront/block/cms-block-p2lab-cms-mediaverse.html.twig— the outer wrapper that respects the sizing mode.views/storefront/element/cms-element-p2lab-cms-mediaverse.html.twig— the inner element that delegates to the right renderer based ontype.
Admin preview
Section titled “Admin preview”The block has a small preview component that shows a placeholder image when configuration is empty, and a thumbnail / placeholder when configuration is set. The actual rich preview is only available on the storefront.
Use within other blocks
Section titled “Use within other blocks”You cannot nest a Mediaverse block inside another block. To combine Mediaverse content with text, drop a separate text element next to the Mediaverse block in the same CMS section.