# YouTube-Video als Popup

**URL:** https://forum.shopware.com/t/youtube-video-als-popup/103083
**Category:** Shopware 6 (German)
**Created:** [22. Februar 2024 um 09:09 UTC](https://forum.shopware.com/t/youtube-video-als-popup/103083 "2024-02-22T09:09:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Frank\_2812](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@Frank\_2812](https://forum.shopware.com/u/Frank_2812)
#### Post date: [22. Februar 2024 um 09:09 UTC](https://forum.shopware.com/t/youtube-video-als-popup/103083/1 "2024-02-22T09:09:56Z")

</div>

Hallo,

ich möchte, aus dem Product-Listing heraus, YouTube-Videos in einem modalen Fenster aufrufen. Dabei würde ich die Video-URL, welche in einem Product-CustomField gespeichert ist, heranziehen. Wegen der Cookie-Problematik würde ich gern das Shopware CMS-Element „cms-element-youtube-video“ nutzen.

Hat jemand eine Idee oder Ansatz, wie man das Element modal aufrufen und dabei die URL für das Video mitgeben kann?

Viele Grüße

---

<div class="post-metadata">

### Author: ![PromoID](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/promoid/32/14015_2.png) [@PromoID](https://forum.shopware.com/u/PromoID)
#### Post date: [22. Februar 2024 um 09:11 UTC](https://forum.shopware.com/t/youtube-video-als-popup/103083/2 "2024-02-22T09:11:57Z")

</div>

Seite mit dem Video Element erstellen.  
Seite einen Link zuweisen (nicht im Menü sichtbar)  
Link als Frame in die Modal laden 🙂

---

<div class="post-metadata">

### Author: ![Frank\_2812](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@Frank\_2812](https://forum.shopware.com/u/Frank_2812)
#### Post date: [22. Februar 2024 um 09:18 UTC](https://forum.shopware.com/t/youtube-video-als-popup/103083/3 "2024-02-22T09:18:46Z")

</div>

Ich weiß zwar, wie man eine CMS-Seite im modalen Fenster aufrufen kann:

```auto
{% block page_product_detail_tax_link %}
    <a class="product-detail-tax-link"
       href="{{ path('frontend.cms.page', { id: config('core.basicInformation.shippingPaymentInfoPage') }) }}"
       title="{{ taxText }}"
       data-ajax-modal="true"
       data-url="{{ path('frontend.cms.page', { id: config('core.basicInformation.shippingPaymentInfoPage') }) }}">
        {{ taxText }}
    </a>
{% endblock %}

```

Aber wie kann ich die YouTube-URL bei dem Aufruf mit übergeben und in der CMS-Seite berücksichtigen?

Viele Grüße
