# zusätzliche Navigationspunkte formatieren

**URL:** <https://forum.shopware.com/t/zusatzliche-navigationspunkte-formatieren/26360>\
**Category:** Shopware 3.5\
**Tags:** themes--design\
**Created:** [20. April 2015 um 12:16 UTC](https://forum.shopware.com/t/zusatzliche-navigationspunkte-formatieren/26360 "2015-04-20T12:16:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shopper1](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@shopper1](https://forum.shopware.com/u/shopper1)\
**Post date:** [20. April 2015 um 12:16 UTC](https://forum.shopware.com/t/zusatzliche-navigationspunkte-formatieren/26360/1 "2015-04-20T12:16:02Z")

</div>

Hallo, ich habe ein Problem. In meiner mainNavigation möchte ich zwei separate Punkte einfügen und diese auch unterschiedlich gestalten. Mein Frage: Wie bekomme ich es am besten hin, dass sich die Punkte auf “active” schalten, wenn man die jeweilige Seite betritt. Zu erst habe ich die Punkte manuell in die categories\_top.tpl eingefügt. Wie jeden anderen Link auch, könnte ich nun über .css link,hover,active formatieren, allerdings habe ich keine Idee, wie der Link seine formatierung auf active ändert. Da kam mir die Idee, die URL einfach über php auszulesen, und diese auf spezielle ID’s zu überprüfen und je nach dem, die Standartformatierung oder aktive Ansicht auszugeben. Leider funktioniert {php}{/php} nicht mehr mit Smarty habe ich gelesen. Daran bin ich also auch gescheitert. Kennt jemand einen Lösungsweg oder hat eine andere Idee zur Vorgehensweise? mit freundlichem Gruß, Jan

---

<div class="post-metadata">

**Author:** ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)\
**Post date:** [20. April 2015 um 12:41 UTC](https://forum.shopware.com/t/zusatzliche-navigationspunkte-formatieren/26360/2 "2015-04-20T12:41:40Z")

</div>

```auto
{if $sCategory.flag} class="active"{/if}
```

---

<div class="post-metadata">

**Author:** ![shopper1](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@shopper1](https://forum.shopware.com/u/shopper1)\
**Post date:** [20. April 2015 um 14:06 UTC](https://forum.shopware.com/t/zusatzliche-navigationspunkte-formatieren/26360/3 "2015-04-20T14:06:40Z")

</div>

> [@kayyy](#):
>
> `{if $sCategory.flag} class="active"{/if}`

- [{se name=‚IndexLinkHome‘}Home{/se}]({url controller=‚index‘} „{s name=‚IndexLinkHome‘}{/s}“)  
{foreach from=$sMainCategories item=sCategory} {if !$sCategory.hidetop} - {$sCategory.description}  
{/if} {/foreach} - [Link 1](https://forum.shopware.com/cat/index/sCategory/1)
- [Link 2](https://forum.shopware.com/custom/index/sCustom/2)

[/code]

---

<div class="post-metadata">

**Author:** ![Shopwareianer](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@Shopwareianer](https://forum.shopware.com/u/Shopwareianer)\
**Post date:** [20. April 2015 um 14:11 UTC](https://forum.shopware.com/t/zusatzliche-navigationspunkte-formatieren/26360/4 "2015-04-20T14:11:20Z")

</div>

Achso jo - Schau mal obs in der Variable $sCategoryInfo flag gibt. [code]

```
{var\_dump($sCategoryInfo )}

```

[/code]

---

<div class="post-metadata">

**Author:** ![shopper1](https://avatars.discourse-cdn.com/v4/letter/s/6f9a4e/32.png) [@shopper1](https://forum.shopware.com/u/shopper1)\
**Post date:** [20. April 2015 um 15:12 UTC](https://forum.shopware.com/t/zusatzliche-navigationspunkte-formatieren/26360/5 "2015-04-20T15:12:27Z")

</div>

Tut mir leid, wenn ich mich etwas blöd anstelle, aber wie dumpe ich denn bei shopware, wenn ich kein php nutzen kann?
