# CustomField Twig-Variablen Frontend-Problem auf 6.7.2

**URL:** <https://forum.shopware.com/t/customfield-twig-variablen-frontend-problem-auf-6-7-2/107857>\
**Category:** Programmierung\
**Created:** [5. September 2025 um 06:35 UTC](https://forum.shopware.com/t/customfield-twig-variablen-frontend-problem-auf-6-7-2/107857 "2025-09-05T06:35:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DDSDE](https://avatars.discourse-cdn.com/v4/letter/d/ecb155/32.png) [@DDSDE](https://forum.shopware.com/u/DDSDE)\
**Post date:** [5. September 2025 um 06:35 UTC](https://forum.shopware.com/t/customfield-twig-variablen-frontend-problem-auf-6-7-2/107857/1 "2025-09-05T06:35:12Z")

</div>

Hallo Community, evtl. kann mir einer einen Hinweis geben,

in 6.6 hatte ich ein kurze und knappe erfolgreiche Twig Variable  
um ein CustomField als Switch im Frontend (Kategorie, (Impressum)) auszugeben

dieser Switch steuerte gelungen noindex,nofollow Verhalten aller Seiten. (auch super per API)  
Vorallem Impressum, Datenschutz, etc.

```auto
<meta name="robots"content="{% if page.header.navigation.active.customFields.noindex_schalter is defined and page.header.navigation.active.customFields.noindex_schalter %}noindex,nofollow{% else %}{{ metaInformation.robots }}{% endif %}">

```

in 6.7 wird mir erleutert,  
das das erstmal nicht mehr so geht, sondern diese twig-Variable

`page.header.navigation.activeCategory`

zur Verfügung steht. Leider scheint das nicht alles zu sein, was verändert wurde.  
denn die Anpassung blieb erfolglos.

Hat jemand ähnlichen Fall und kann dabei mithelfen?

Grüße

---

<div class="post-metadata">

**Author:** ![R4M](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/r4m/32/9983_2.png) [@R4M](https://forum.shopware.com/u/R4M)\
**Post date:** [5. September 2025 um 08:39 UTC](https://forum.shopware.com/t/customfield-twig-variablen-frontend-problem-auf-6-7-2/107857/2 "2025-09-05T08:39:16Z")

</div>

Vielleicht so:

> page.category.customFields…

---

<div class="post-metadata">

**Author:** ![DDSDE](https://avatars.discourse-cdn.com/v4/letter/d/ecb155/32.png) [@DDSDE](https://forum.shopware.com/u/DDSDE)\
**Post date:** [5. September 2025 um 08:58 UTC](https://forum.shopware.com/t/customfield-twig-variablen-frontend-problem-auf-6-7-2/107857/3 "2025-09-05T08:58:39Z")

</div>

AUA,😅 …der Wald vor lauter Bäumen.  
Besten Dank R4M

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/2/9/29c7587ba660f00e4995d1743162782e5d6d8653.svg) [@system](https://forum.shopware.com/u/system)\
**Post date:** [5. Oktober 2025 um 08:58 UTC](https://forum.shopware.com/t/customfield-twig-variablen-frontend-problem-auf-6-7-2/107857/4 "2025-10-05T08:58:47Z")

</div>

Dieses Thema wurde automatisch 30 Tage nach der letzten Antwort geschlossen. Es sind keine neuen Antworten mehr erlaubt.
