# Smarty Variable mit Seitentyp?

**URL:** <https://forum.shopware.com/t/smarty-variable-mit-seitentyp/94622>\
**Category:** Shopware 5\
**Created:** [31. Mai 2022 um 12:29 UTC](https://forum.shopware.com/t/smarty-variable-mit-seitentyp/94622 "2022-05-31T12:29:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christian.Saeum](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/christian.saeum/32/15763_2.png) [@Christian.Saeum](https://forum.shopware.com/u/Christian.Saeum)\
**Post date:** [31. Mai 2022 um 12:29 UTC](https://forum.shopware.com/t/smarty-variable-mit-seitentyp/94622/1 "2022-05-31T12:29:42Z")

</div>

Gibt es eine Smarty Variable mit der man erkennt ob man in einer Kategorie, Produktdetailseite usw ist?

---

<div class="post-metadata">

**Author:** ![sonic](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/sonic/32/25728_2.png) [@sonic](https://forum.shopware.com/u/sonic)\
**Post date:** [31. Mai 2022 um 12:36 UTC](https://forum.shopware.com/t/smarty-variable-mit-seitentyp/94622/2 "2022-05-31T12:36:46Z")

</div>

Direkt mit Detailangabe nicht.  
Mit **controllerName** kommst Du an den Controller und mit **controllerAction** an die zugehörige Action. Damit kann man dann ermitteln, was man so angezeigt bekommt.

[https://github.com/shopware/shopware/blob/5.7/themes/Frontend/Bare/frontend/index/index.tpl#L19](https://github.com/shopware/shopware/blob/5.7/themes/Frontend/Bare/frontend/index/index.tpl#L19)

---

<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:** [31. Mai 2022 um 13:20 UTC](https://forum.shopware.com/t/smarty-variable-mit-seitentyp/94622/3 "2022-05-31T13:20:00Z")

</div>

Unter dem Template Variablen taucht auch „Controller“ mit auf:

![2022.05.31-15_17_00](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/3X/1/a/1aa91c7c911facdba364e6552d86d39a47689aa2.png)

---

<div class="post-metadata">

**Author:** ![Christian.Saeum](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/christian.saeum/32/15763_2.png) [@Christian.Saeum](https://forum.shopware.com/u/Christian.Saeum)\
**Post date:** [31. Mai 2022 um 16:45 UTC](https://forum.shopware.com/t/smarty-variable-mit-seitentyp/94622/4 "2022-05-31T16:45:47Z")

</div>

Ja das habe ich nach den Post von @sonic auch gesehen und dadurch kann ich das erreichen was ich wollte.

Danke
