# SEO Router Einstellung Category

**URL:** <https://forum.shopware.com/t/seo-router-einstellung-category/26335>\
**Category:** Allgemein\
**Created:** [18. April 2015 um 14:10 UTC](https://forum.shopware.com/t/seo-router-einstellung-category/26335 "2015-04-18T14:10:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_tian](https://avatars.discourse-cdn.com/v4/letter/c/ee59a6/32.png) [@Chris\_tian](https://forum.shopware.com/u/Chris_tian)\
**Post date:** [18. April 2015 um 14:10 UTC](https://forum.shopware.com/t/seo-router-einstellung-category/26335/1 "2015-04-18T14:10:55Z")

</div>

Hallo Zusammen, standardmäßig ist ja die Kategoriebezeichnung ausschlaggebend für den SEO-Link. Mit folgender Funktion hänge ich den Inhalt aus dem Freitextfeld 2 hinten an: {$sCategory.name}{if $sCategory.attribute.attribute2}/{$sCategory.attribute.attribute2}{/if} Wie bekomme ich es nun hin, dass wenn das Freitextfeld 2 einen Inhalt hat, dann auch nur dieser ausgegeben wird, ohne die Bezeichnung? Ist Feld 2 leer soll der Standard verwendet werden. Grüße Christian

---

<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:** [18. April 2015 um 14:17 UTC](https://forum.shopware.com/t/seo-router-einstellung-category/26335/2 "2015-04-18T14:17:35Z")

</div>

```auto
 {if $sCategory.attribute.attribute2} {$sCategory.attribute.attribute2} {else} {$sCategory.name} {/if} 
```
