Skip to content

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.

  • Namep2lab-cms-mediaverse
  • Label — “Mediaverse” (translated)
  • Categoryvideo
  • Sizing modesboxed, boxed-stretch, fullwidth
SlotTypePurpose
contentp2lab-cms-mediaverseThe 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.

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.

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 on type.

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.

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.