# Probleme mit Modals

**URL:** <https://forum.shopware.com/t/probleme-mit-modals/58913>\
**Category:** Themes & Design\
**Created:** [3. April 2019 um 15:35 UTC](https://forum.shopware.com/t/probleme-mit-modals/58913 "2019-04-03T15:35:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Husky110](https://avatars.discourse-cdn.com/v4/letter/h/c0e974/32.png) [@Husky110](https://forum.shopware.com/u/Husky110)\
**Post date:** [3. April 2019 um 15:35 UTC](https://forum.shopware.com/t/probleme-mit-modals/58913/1 "2019-04-03T15:35:11Z")

</div>

Hallo Community,

Ich hab ein Problem mit den Shopware-Modals…

Unter&nbsp;[https://developers.shopware.com/designers-guide/responsive-theme-default-components/#modal-boxes](https://developers.shopware.com/designers-guide/responsive-theme-default-components/#modal-boxes)&nbsp;wird wunderbar herrlich erklärt, wie man den HMTL-Code für so ein Modal aufbaut. Aber da steht nix wie man das Teil dann auch auf bekommt… Gleiches unter&nbsp;[https://developers.shopware.com/styletile/components.html#modal](https://developers.shopware.com/styletile/components.html#modal)

Ich hab bis jetzt nur ein paar obskure Infos gefunden, wie man das über einen data-content-Parameter und so weiter hinbekommt, aber nicht wie in der Dokumentation beschrieben.

Hat da jemand Erfahrungen damit?

Grüße

---

<div class="post-metadata">

**Author:** ![hnpw](https://avatars.discourse-cdn.com/v4/letter/h/e0b2c6/32.png) [@hnpw](https://forum.shopware.com/u/hnpw)\
**Post date:** [4. April 2019 um 15:26 UTC](https://forum.shopware.com/t/probleme-mit-modals/58913/2 "2019-04-04T15:26:17Z")

</div>

Dein Code könnte bspw. so aussehen, das funktioniert:

```
{extends file="parent:frontend/detail/content/buy_container.tpl"}

{block name='frontend_detail_data_attributes'}
    {$smarty.block.parent}
    
        Modal
    

    
        
            
                Überschrift
            
        
        
            Inhalt
        
        
        
        
    
{/block}

```

&nbsp;
