# Template wird nicht ersetzt

**URL:** https://forum.shopware.com/t/template-wird-nicht-ersetzt/26871
**Category:** Themes & Design
**Created:** [4. Mai 2015 um 18:19 UTC](https://forum.shopware.com/t/template-wird-nicht-ersetzt/26871 "2015-05-04T18:19:38Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![thethe](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@thethe](https://forum.shopware.com/u/thethe)
#### Post date: [4. Mai 2015 um 18:19 UTC](https://forum.shopware.com/t/template-wird-nicht-ersetzt/26871/1 "2015-05-04T18:19:38Z")

</div>

Hallo, bin wie hier beschrieben vorgegangen: [https://devdocs.shopware.com/designers- … g-started/](https://devdocs.shopware.com/designers-guide/getting-started/) und habe in meinem Theme die im Beispiel erwähnte Datei geändert: [code] {extends file=“parent:frontend/index/shop-navigation.tpl”}

```
    {* Menu (Off canvas left) trigger *}
    {block name='frontend_index_offcanvas_left_trigger'}
        <li class="navigation--entry entry--menu-left" role="menuitem">
            <a class="entry--link entry--trigger btn is--icon-left" href="#offcanvas--left" data-offcanvas="true" data-offcanvasselector=".sidebar-main">
                <i class="icon--menu"></i> {s namespace='frontend/index/menu_left' name="IndexLinkMenu"}{/s}
            </a>
        </li>
    {/block}

    {* Search form *}
    {block name='frontend_index_search'}
        <li class="navigation--entry entry--search" role="menuitem" data-search="true" aria-haspopup="true" data-activeonstart="true">
            <a class="btn entry--link entry--trigger" href="#show-hide--search" title="{" namespace="frontend/index/search" name="IndexTitleSearchToggle">
                <i class="icon--search"></i>

                {block name='frontend_index_search_display'}
                Suchfeld
                    <span class="search--display">{s namespace='frontend/index/search' name="IndexSearchFieldSubmit"}{/s}</span>
                {/block}
            </a>

            {* Include of the search form *}
            {block name='frontend_index_search_include'}
                {include file="frontend/index/search.tpl"}
            {/block}
        </li>
    {/block}

    {* Cart entry *}
    {block name='frontend_index_checkout_actions'}
        {* Include of the cart *}
        {block name='frontend_index_checkout_actions_include'}
            {action module=widgets controller=checkout action=info}
        {/block}
    {/block}
</ul>

```

[/code] Die Änderunegn werden nicht angezigt. Was habe ich übersehen? Danke P.

---

<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: [4. Mai 2015 um 18:30 UTC](https://forum.shopware.com/t/template-wird-nicht-ersetzt/26871/2 "2015-05-04T18:30:34Z")

</div>

Du hast diese aber nicht wie im Tutorial geändert. Wenn du eine Datei erweitern willst ( extends ) musst du dich an einen {block} hängen. Also wie in der Doku beschrieben bspw. `{block name='frontend\_index\_checkout\_actions' prepend} // place your new element here {/block}` Alternativ kannst du bei einer so kleinen Datei wie die shop-navigation auch einfach die komplette Datei ersetzen ohne das {extends file=“parent:frontend/index/shop-navigation.tpl”}. Dann ersetzt er die Datei komplett. Die Beispiel Datei in der Doku würde also nur so aussehen: [code]{extends file=“parent:frontend/index/shop-navigation.tpl”} // erweiter das Template {block name=‘frontend\_index\_checkout\_actions’ prepend} // Hänge den Inhalt vor diesen Block

- {\* Add an URL to the href attribute to make your link work \*}  
{/block}[/code] Danach Cache löschen nicht vergessen.

---

<div class="post-metadata">

### Author: ![thethe](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@thethe](https://forum.shopware.com/u/thethe)
#### Post date: [4. Mai 2015 um 18:34 UTC](https://forum.shopware.com/t/template-wird-nicht-ersetzt/26871/3 "2015-05-04T18:34:33Z")

</div>

Verstehe. Allerdings wird in meinem Fall das Template leider nicht ersetzt, obwohl es an der rcihtigen stelle liegt : /themes/Frontend/Shopname/frontend/index/shop-navigation.tpl

---

<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: [4. Mai 2015 um 18:46 UTC](https://forum.shopware.com/t/template-wird-nicht-ersetzt/26871/4 "2015-05-04T18:46:14Z")

</div>

Hast du das Template wie beschrieben geändert und nicht wie in deinem Post ? Ist das Template aktiviert ? Ist der Shopware Cache geleert ?

---

<div class="post-metadata">

### Author: ![thethe](https://avatars.discourse-cdn.com/v4/letter/t/a9adbd/32.png) [@thethe](https://forum.shopware.com/u/thethe)
#### Post date: [4. Mai 2015 um 21:44 UTC](https://forum.shopware.com/t/template-wird-nicht-ersetzt/26871/5 "2015-05-04T21:44:30Z")

</div>

Hast du das Template wie beschrieben geändert und nicht wie in deinem Post ? Ja. Ist das Template aktiviert ? Das Theme ist aktiv - muss man die Templates gesondert aktivieren? Ist der Shopware Cache geleert ? Ja. Was kann es sonst noch sein? Danke P.
