# Kategorie Freitext unterhalb des Artikels ausgeben

**URL:** https://forum.shopware.com/t/kategorie-freitext-unterhalb-des-artikels-ausgeben/59514
**Category:** Themes & Design
**Created:** [13. Mai 2019 um 15:34 UTC](https://forum.shopware.com/t/kategorie-freitext-unterhalb-des-artikels-ausgeben/59514 "2019-05-13T15:34:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![nordprom](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@nordprom](https://forum.shopware.com/u/nordprom)
#### Post date: [13. Mai 2019 um 15:34 UTC](https://forum.shopware.com/t/kategorie-freitext-unterhalb-des-artikels-ausgeben/59514/1 "2019-05-13T15:34:12Z")

</div>

Moin!

Ich versuche mich schon eine ganze Zeit an folgendes Szenario: Ich möchte unterhalb des Artikels einen Text ausgeben, den ich in der jeweiligen (dazugehörigen) Kategorie als Freitext anlege.

Ich hab alles soweit fertig, nur krieg ich nicht den Text ausgeben. Ich hab gleich das attribute1 genommen. Ich hab schon diverse Befehle probiert ({$s\_categories\_attributes.attribute1}…  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {$sCategoryContent.attribute.attr1}… ) aber leider ohne Erfolg. Hat jemand ein Tipp ?

Vielen Dank!

---

<div class="post-metadata">

### Author: ![scriptfarm](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@scriptfarm](https://forum.shopware.com/u/scriptfarm)
#### Post date: [13. Mai 2019 um 15:57 UTC](https://forum.shopware.com/t/kategorie-freitext-unterhalb-des-artikels-ausgeben/59514/2 "2019-05-13T15:57:26Z")

</div>

```
 Haste dam mal probiert 

 {$sCategoryContent.attribute.attribute1}

 &nbsp;Mit {$sCategoryContent| **@var\_dump** } kann man sich auch alle verfügbaren Variablen/Felder ausgeben lassen, das hilft beim finden solcher Einträge.
```

---

<div class="post-metadata">

### Author: ![nordprom](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@nordprom](https://forum.shopware.com/u/nordprom)
#### Post date: [13. Mai 2019 um 16:09 UTC](https://forum.shopware.com/t/kategorie-freitext-unterhalb-des-artikels-ausgeben/59514/3 "2019-05-13T16:09:02Z")

</div>

> [@scriptfarm schrieb:](https://forum.shopware.com/profile/21490/scriptfarm "scriptfarm")

```
 Haste dam mal probiert 

 {$sCategoryContent.attribute.attribute1}

 &nbsp;Mit {$sCategoryContent| **@var\_dump** } kann man sich auch alle verfügbaren Variablen/Felder ausgeben lassen, das hilft beim finden solcher Einträge.

```

Den hau ich dann einfach ins Template ? Muss ich das Debugging dann aktivieren ?

---

<div class="post-metadata">

### Author: ![nordprom](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@nordprom](https://forum.shopware.com/u/nordprom)
#### Post date: [13. Mai 2019 um 16:19 UTC](https://forum.shopware.com/t/kategorie-freitext-unterhalb-des-artikels-ausgeben/59514/4 "2019-05-13T16:19:04Z")

</div>

Habs!

Der Eintrag hat mir geholfen:

> **[Inhalt aus Kategoriefreitextfeld in zugehöriger Artikeldetailseite als...](https://forum.shopware.com/discussion/comment/246821/#Comment_246821)**
>
> @Günther schrieb: …{if $sCategoryContent.attribute.attribute1 == true} Dann soll hier der Text stehen… Allerdings funktioniert das so nicht Ich hab jetzt in meinem Beispiel keine Checkbox angelegt, sondern nur die Voreinstellung mit dem größeren...

Vielen Dank!

---

<div class="post-metadata">

### Author: ![nordprom](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@nordprom](https://forum.shopware.com/u/nordprom)
#### Post date: [14. Mai 2019 um 17:20 UTC](https://forum.shopware.com/t/kategorie-freitext-unterhalb-des-artikels-ausgeben/59514/5 "2019-05-14T17:20:03Z")

</div>

Zu früh gefreut - mein Code funktioniert nur für die Hauptkategorien (die unterhalb der Kategorie „Deutsch“) - aber nicht für die Unterkategorien…jemand ne Idee ?&nbsp;

```
           {if $sCategories[$sCategoryCurrent].attribute.attribute1}
		{$sCategories[$sCategoryCurrent].attribute.attribute1}
	{else}
		Kein text
	{/if}

```

&nbsp;
