Template-Vererbung

Habe da noch ein Verständnisfrage: Wenn ich in meinem Template-Bereich eine “template/frontend/index/index.tpl” folgenden Inhalts anlege [quote] {extends file=“frontend/index/index.tpl”} {block name=‘frontend_index_navigation’ prepend} {/block} [/quote] Ergibt das folgende Fehlermeldung: [quote] Fatal error: Uncaught exception ‘SmartyCompilerException’ with message ‘Syntax Error in template “H:\Apache Group\Apache\htdocs\seifenparadies\shopware_powertemplate\shopware\templates/modebina/frontend/index/index.tpl” on line 2 "{extends file=“frontend/index/index.tpl”} " illegal recursive call of “frontend/index/index.tpl”’ in H:\Apache Group\Apache\htdocs\seifenparadies\shopware_powertemplate\shopware\engine\Enlight\Vendor\Smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php:404 Stack trace: #0 H:\Apache Group\Apache\htdocs\seifenparadies\shopware_powertemplate\shopware\engine\Enlight\Vendor\Smarty\libs\sysplugins\smarty_internal_compile_extends.php(45): Smarty_Internal_TemplateCompilerBase->trigger_template_error(‘illegal recursi…’, 2) #1 H:\Apache Group\Apache\htdocs\seifenparadies\shopware_powertemplate\shopware\engine\Enlight\Vendor\Smarty\libs\sysplugins\smarty_internal_templatecompilerbase.php(252): Smarty_Internal_Compile_Extends->compile(Array, Object(Smarty_In [/quote] (Wobei zu sagen ist, dass ich eine “_local/frontend/index/index.tpl” gibt…) Wenn ich die “template/frontend/index/index.tpl” so gestalte, funktioniert das… [quote] {extends file="…/_local/frontend/index/index.tpl"} {block name=‘frontend_index_navigation’ prepend} {/block} [/quote] Bedeutet das, dass man keine mehrstufige Vererbung realisieren kann (template/frontend/index/index.tpl => _local/frontend/index/index.tpl => _default/frontend/index/index.tpl)?

Wenn ich ein Template erweitern will nehm ich: {extends file="…/_default/frontend/index/index.tpl"} Bei deinem ersten Beispiel: {extends file=„frontend/index/index.tpl“} versucht das Template sich quasi selbst zu erweitern - deswegen der Fehler mit dem rekursiven Aufruf - denke ich zumindest.

[quote=“radox”]Bei deinem ersten Beispiel: {extends file=“frontend/index/index.tpl”} versucht das Template sich quasi selbst zu erweitern - deswegen der Fehler mit dem rekursiven Aufruf - denke ich zumindest.[/quote] Wird wohl der Grund sein…