# \[gelöst\] Template als Plugin

**URL:** https://forum.shopware.com/t/gelost-template-als-plugin/12678
**Category:** Shopware 3.5
**Tags:** programming
**Created:** [12. April 2013 um 16:36 UTC](https://forum.shopware.com/t/gelost-template-als-plugin/12678 "2013-04-12T16:36:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![bluewolf](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/bluewolf/32/7886_2.png) [@bluewolf](https://forum.shopware.com/u/bluewolf)
#### Post date: [12. April 2013 um 16:36 UTC](https://forum.shopware.com/t/gelost-template-als-plugin/12678/1 "2013-04-12T16:36:30Z")

</div>

Hallo, nach der Shopware-Anleitung habe ich aus einem Template, welches problemlos funktioniert, ein Plugin für den Store gemacht. Wenn ich es nun zum Testen auf meiner lokalen Installation über den Pluginmanager hochlade (Inst., Aktivierung + Templateauswahl erfolgreich) kommt im Frontend folgende Fehlermeldung: [quote]Fatal error: Uncaught exception ‚SmartyCompilerException‘ with message ‚Syntax Error in template „C:\uwamp\www\engine\Shopware\Plugins\Community\Frontend\WolfTemplatePapyrus\Views\frontend\index\index.tpl“ on line 1 „{extends file=‚parent:frontend/index/index.tpl‘}“ illegal recursive call of „parent:frontend/index/index.tpl“‘ in C:\uwamp\www\engine\Library\Smarty\sysplugins\smarty\_internal\_templatecompilerbase.php:657 Stack trace: #0 C:\uwamp\www\engine\Library\Smarty\sysplugins\smarty\_internal\_compile\_extends.php(82): Smarty\_Internal\_TemplateCompilerBase-\>trigger\_template\_error(‚illegal recursi…‘, 1) #1 C:\uwamp\www\engine\Library\Smarty\sysplugins\smarty\_internal\_templatecompilerbase.php(465): Smarty\_Internal\_Compile\_Extends-\>compile(Array, Object(Smarty\_Internal\_SmartyTemplateCompiler), Array, NULL, NULL) #2 C:\uwamp\www\engine\Library\Smarty\sysplugins\smarty\_internal\_templatecompilerbase.php(249): Smarty\_Internal\_TemplateCompilerBase-\>callTagCompiler(‚extends‘, Array, Array) #3 C:\uwa in C:\uwamp\www\engine\Library\Smarty\sysplugins\smarty\_internal\_templatecompilerbase.php on line 657 503 Service Unavailable[/quote] Dabei sieht die Index.tpl aus wie im Tutorial: [code]{extends file=‚parent:frontend/index/index.tpl‘} {block name=„frontend\_index\_shopware\_footer“}

{\* FOOTER \*}

{include file=‚frontend/index/footer.tpl‘}

…

{/block}[/code] Lösung parat? Ich sehe den Fehler nicht.

---

<div class="post-metadata">

### Author: ![Ade](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@Ade](https://forum.shopware.com/u/Ade)
#### Post date: [12. April 2013 um 18:13 UTC](https://forum.shopware.com/t/gelost-template-als-plugin/12678/2 "2013-04-12T18:13:50Z")

</div>

Schaut eigentlich gut aus. Die Fehlermeldung bedeutet doch, dass die Datei sich selbst aufruft, oder? Mal testweise mit extends="…/\_emotion/frontend/index/index.tpl" versucht?

---

<div class="post-metadata">

### Author: ![bluewolf](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/bluewolf/32/7886_2.png) [@bluewolf](https://forum.shopware.com/u/bluewolf)
#### Post date: [12. April 2013 um 18:21 UTC](https://forum.shopware.com/t/gelost-template-als-plugin/12678/3 "2013-04-12T18:21:56Z")

</div>

Das geht auch nicht. Die Anleitung von Shopware scheint mir fehlerhaft.

---

<div class="post-metadata">

### Author: ![hth](https://avatars.discourse-cdn.com/v4/letter/h/b77776/32.png) [@hth](https://forum.shopware.com/u/hth)
#### Post date: [12. April 2013 um 18:54 UTC](https://forum.shopware.com/t/gelost-template-als-plugin/12678/4 "2013-04-12T18:54:18Z")

</div>

Hallo, evtl. liegt der rekursive Aufruf an der Vererbungsstrategie von Shopware. Plugin-Templates greifen zum Abschluß noch in die Templatekompilierung ein und überschreiben alle anderen Blöcke.

---

<div class="post-metadata">

### Author: ![bluewolf](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/bluewolf/32/7886_2.png) [@bluewolf](https://forum.shopware.com/u/bluewolf)
#### Post date: [23. April 2013 um 14:48 UTC](https://forum.shopware.com/t/gelost-template-als-plugin/12678/5 "2013-04-23T14:48:02Z")

</div>

Gelöst: Verzeichnis “View” war mit kleinem “v” , im der Bootstap mit großem “V”… kleiner Fehler, große Wirkung
