# Freitextfeld / Attribute / protected

**URL:** <https://forum.shopware.com/t/freitextfeld-attribute-protected/59275>\
**Category:** Programmierung\
**Created:** [27. April 2019 um 11:35 UTC](https://forum.shopware.com/t/freitextfeld-attribute-protected/59275 "2019-04-27T11:35:16Z")\
**Posts on this page:** 6\
**Page:** 1

<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:** [27. April 2019 um 11:35 UTC](https://forum.shopware.com/t/freitextfeld-attribute-protected/59275/1 "2019-04-27T11:35:16Z")

</div>

Hi Leute,

ich habe auch mal ein Problem und zwar kämpfe ich seit heute morgen ein Freitextfeld (s\_articles\_img\_attributes) ins Template zu bekommen.

Nach der Ausgabe über {Dump} habe ich gesehen, das die Inhalte zwar vorhanden sind, diese aber “protected” sind.

Auch über $sArticle.attributes.core-\>get( “attr1” )&nbsp; habe ich kein Glück an die Inhalte zu kommen.

Kann mir vielleicht jemand weiterhelfen.

Danke Rene

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![ahmadsaad](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@ahmadsaad](https://forum.shopware.com/u/ahmadsaad)\
**Post date:** [27. April 2019 um 12:30 UTC](https://forum.shopware.com/t/freitextfeld-attribute-protected/59275/2 "2019-04-27T12:30:06Z")

</div>

Hallo @scriptfarm‍,

beim img attributes es heißt ‚attribute1 -&nbsp;attribute2 …‘&nbsp; nicht ‚attr1‘

z.b $bild Variable hat ein bild , dann beim Template du kannst das bild Attribute wie so erreichen :

```
$bild.attribute.attribute1

```

VG,

Tel.: +49 755&nbsp;- 183 990 00 | Email: [info@enbit.de](mailto:info@enbit.de) | Web:&nbsp;[http://enbit.de/](http://enbit.de/)

---

<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:** [27. April 2019 um 14:01 UTC](https://forum.shopware.com/t/freitextfeld-attribute-protected/59275/3 "2019-04-27T14:01:29Z")

</div>

Hallo @[ahmadsaad](https://forum.shopware.com/profile/24684/ahmadsaad)

danke für die Rückmeldung, also dann im Prinzip so : {$sArticle.image.attribute.attribute1} ?

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![ahmadsaad](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@ahmadsaad](https://forum.shopware.com/u/ahmadsaad)\
**Post date:** [27. April 2019 um 14:18 UTC](https://forum.shopware.com/t/freitextfeld-attribute-protected/59275/4 "2019-04-27T14:18:51Z")

</div>

> [@scriptfarm schrieb:](https://forum.shopware.com/profile/21490/scriptfarm "scriptfarm")
> 
> Hallo @[ahmadsaad](https://forum.shopware.com/profile/24684/ahmadsaad)
> 
> danke für die Rückmeldung, also dann im Prinzip so : {$sArticle.image.attribute.attribute1} ?
> 
> &nbsp;
> 
> &nbsp;

&nbsp;ja genau

---

<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:** [27. April 2019 um 15:53 UTC](https://forum.shopware.com/t/freitextfeld-attribute-protected/59275/5 "2019-04-27T15:53:03Z")

</div>

OK danke, das sieht schon mal alles gut aus.

Wie kann ich den Feld Inhalt von Bild 1, Bild 2 oder Bild 3 direkt ansprechen.

Ich habe so ein wirrwarr bei der print Array Ausgabe, das ich nichts zuordnen kann.

Eine Schleife hilf mir nicht weiter.

Etwa so ?

{$sArticle.image[1].attribute.attribute1}

&nbsp;

------------------- EDIT --------------------

Habe den Schnacksus gefunden, es muss dann so heissen :

{$sArticle.image.attribute.attribute1}

{$sArticle.image **s** [0].attribute.attribute1}

{$sArticle.image **s** [1].attribute.attribute1}

Da muss man erst einmal drauf kommen, das nur das Mainipage mit „image“ aufgerufen wird, alle anderen mit „image **s** “.

Danke

&nbsp;

---

<div class="post-metadata">

**Author:** ![Hotte](https://avatars.discourse-cdn.com/v4/letter/h/90db22/32.png) [@Hotte](https://forum.shopware.com/u/Hotte)\
**Post date:** [15. November 2019 um 16:36 UTC](https://forum.shopware.com/t/freitextfeld-attribute-protected/59275/6 "2019-11-15T16:36:41Z")

</div>

Hat jemand eine Idee, wie ich an die BildAttribute im Produkt-Feed (auch „Produktexport“ genannt)&nbsp;komme?
