# Variablen im Namen vom Textbaustein?

**URL:** <https://forum.shopware.com/t/variablen-im-namen-vom-textbaustein/3975>\
**Category:** Shopware 3.5\
**Tags:** templates--design\
**Created:** [19. August 2011 um 10:47 UTC](https://forum.shopware.com/t/variablen-im-namen-vom-textbaustein/3975 "2011-08-19T10:47:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mac](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/mac/32/7855_2.png) [@mac](https://forum.shopware.com/u/mac)\
**Post date:** [19. August 2011 um 10:47 UTC](https://forum.shopware.com/t/variablen-im-namen-vom-textbaustein/3975/1 "2011-08-19T10:47:01Z")

</div>

Hallo, ich möchte mir dynamische Textbausteine erstellen und müsste eine Variable an den Namen übergeben. So geht es leider nicht: {s name="$variable"}Foo{/s} Hat jemand eine andere Idee oder Tipp? Gruß Marco

---

<div class="post-metadata">

**Author:** ![Marcel\_S](https://avatars.discourse-cdn.com/v4/letter/m/cc9497/32.png) [@Marcel\_S](https://forum.shopware.com/u/Marcel_S)\
**Post date:** [19. August 2011 um 17:17 UTC](https://forum.shopware.com/t/variablen-im-namen-vom-textbaustein/3975/2 "2011-08-19T17:17:07Z")

</div>

Hallo, du könntest es mal mit folgender Syntax versuchen: {‚Defaultwert‘|snippet:$DynamischerSnippetName:‚frontend/index/namespace‘} Grüße, Marcel

---

<div class="post-metadata">

**Author:** ![mac](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/mac/32/7855_2.png) [@mac](https://forum.shopware.com/u/mac)\
**Post date:** [22. August 2011 um 10:00 UTC](https://forum.shopware.com/t/variablen-im-namen-vom-textbaustein/3975/3 "2011-08-22T10:00:43Z")

</div>

Hallo, leider wir mir mit der Syntax kein Textbaustein angelegt. Die Variable habe ich ersetzt. Gibt es vielleicht eine andere Möglichkeit? Gruß Marco
