# Erweiterung Emotion Komponente um cmsText?

**URL:** <https://forum.shopware.com/t/erweiterung-emotion-komponente-um-cmstext/51508>\
**Category:** Themes & Design\
**Created:** [2. März 2018 um 14:32 UTC](https://forum.shopware.com/t/erweiterung-emotion-komponente-um-cmstext/51508 "2018-03-02T14:32:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mxup](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@mxup](https://forum.shopware.com/u/mxup)\
**Post date:** [2. März 2018 um 14:32 UTC](https://forum.shopware.com/t/erweiterung-emotion-komponente-um-cmstext/51508/1 "2018-03-02T14:32:45Z")

</div>

Hallo zusammen!

für eine Projekt muss die emotion Komponente widget/emotions/components/component\_category\_teaser.tpl um das Feld cmsText (aus der Kategorie) erweitern werden.

Leider bekomme ich beim Versuch über {$Data.category-\>cmsHeadline} die Meldung Uncaught Error: Cannot access protected property Shopware\Bundle\StoreFrontBundle\Struct\Category::$cmsHeadline …

und beim Versuch über {$Data.category-\>get(‘cmsHeadline’)} die Meldung Uncaught Error: Call to undefined method Shopware\Bundle\StoreFrontBundle\Struct\Category::get() …

Die Foren-Suche blieb erfolglos. Mein Wissensstand reicht nicht aus und bin somit ratlos. Kann mir jemand weiterhelfen. Danke!

---

<div class="post-metadata">

**Author:** ![7nd1](https://avatars.discourse-cdn.com/v4/letter/7/ad7895/32.png) [@7nd1](https://forum.shopware.com/u/7nd1)\
**Post date:** [6. März 2018 um 12:08 UTC](https://forum.shopware.com/t/erweiterung-emotion-komponente-um-cmstext/51508/2 "2018-03-06T12:08:25Z")

</div>

mach mal das Data. weg und schreibe es mal so bitte -\> {$category.cmsHeadline}

&nbsp;

check das mal ob das dann geht

---

<div class="post-metadata">

**Author:** ![simkli](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/simkli/32/13124_2.png) [@simkli](https://forum.shopware.com/u/simkli)\
**Post date:** [6. März 2018 um 12:41 UTC](https://forum.shopware.com/t/erweiterung-emotion-komponente-um-cmstext/51508/3 "2018-03-06T12:41:21Z")

</div>

Hallo mxup,  
und falls das nicht klappt, probier mal:

```
 {$Data.category-\>getCmsHeadline()} 

```

Viele Grüße

---

<div class="post-metadata">

**Author:** ![mxup](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@mxup](https://forum.shopware.com/u/mxup)\
**Post date:** [6. März 2018 um 12:47 UTC](https://forum.shopware.com/t/erweiterung-emotion-komponente-um-cmstext/51508/4 "2018-03-06T12:47:28Z")

</div>

Hallo simkli,

das ist die Lösung.

Vielen herzlichen Dank und viele Grüße
