# Gewählten Artikel im Frontend ausgeben

**URL:** <https://forum.shopware.com/t/gewaehlten-artikel-im-frontend-ausgeben/94673>\
**Category:** Shopware 6 (German)\
**Tags:** general, programming\
**Created:** [3. Juni 2022 um 11:17 UTC](https://forum.shopware.com/t/gewaehlten-artikel-im-frontend-ausgeben/94673 "2022-06-03T11:17:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.hoffmann](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@a.hoffmann](https://forum.shopware.com/u/a.hoffmann)\
**Post date:** [3. Juni 2022 um 11:17 UTC](https://forum.shopware.com/t/gewaehlten-artikel-im-frontend-ausgeben/94673/1 "2022-06-03T11:17:09Z")

</div>

Grüßt euch erstmal,  
ich bin neu in der Plugin Entwicklung und habe Schwierigkeiten den im Backend ausgewählten Artikel im Frontend auszugeben.

config.xml:  
`<card> <title>Product of the Month</title <title lang="de-DE">Produkt des Monats</title < component name="sw-entity-single-select" <name>productOfTheMonth</name> <entity>product</entity> <label>Choose the product of the month for the plugin configuration</label> <label lang="de-DE">Wähle dein Produkt des Monats</label> </component> </card>`

Was muss ich anlegen um den später im Backend gewählten Artikel hier auszugeben? {% sw\_extends ‚@Storefront/storefront/page/product-detail/index.html.twig‘ %}

Vielen Dank für die Hilfe!

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [3. Juni 2022 um 12:13 UTC](https://forum.shopware.com/t/gewaehlten-artikel-im-frontend-ausgeben/94673/2 "2022-06-03T12:13:54Z")

</div>

Die Plugin-Konfiguration speichert lediglich die ID des Artikels.

Du musst den Artikel dann selbst laden…

im Backend: [https://developer.shopware.com/docs/guides/plugins/plugins/plugin-fundamentals/use-plugin-configuration](https://developer.shopware.com/docs/guides/plugins/plugins/plugin-fundamentals/use-plugin-configuration)

im Frontend: [https://developer.shopware.com/docs/resources/references/storefront-reference/twig-function-reference](https://developer.shopware.com/docs/resources/references/storefront-reference/twig-function-reference)

Wie gesagt, du bekommst die ID, nicht den Artikel selbst.
