Hallo,
ich hatte um Unterkategorien farblich abzugrenzen folgenden Code in Verwendung:
{* Maincategories left *}
{function name=categories level=0}
{block name="frontend_index_categories_left_entry"}{/block}
{foreach from=$categories item=category}
{if $level > 0}
{$category.description}
{/if}
{if $category.subcategories}
{call name=categories categories=$category.subcategories level=$level+1}
{/if}
{/foreach}
{block name="frontend_index_categories_left_after"}{/block}
{/function}
{if $sCategories}
{call name=categories categories=$sCategories}
{elseif $sMainCategories}
{call name=categories categories=$sMainCategories}{/if}
Â
Nach dem Update auf die aktuellste Versien bekomme ich allerdings folgende Fehlermeldung:
Â
exception âSmartyCompilerExceptionâ with message âSyntax Error in template â/MEINSHOP/httpdocs/themes/Frontend/Marken_tools/frontend/index/sidebar-categories.tplâ on line 9 â<a href=â{if $category.flag}hasâsub-categories{/if}{if $category.external}{$category.external}{else}{$category.link|rewrite:$category.description}{/if}" class=" {if $level == 0}{/if} navigationâlink {if $category.flag} isâactive{/if}">" unknown modifier ârewriteââ in /engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php:657 Stack trace:
#0 /engine/Library/Smarty/sysplugins/smarty_internal_compile_private_modifier.php(132): Smarty_Internal_TemplateCompilerBase->trigger_template_error(âunknown modifieâŠâ, 9)
#1 /engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(475): Smarty_Internal_Compile_Private_Modifier->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL)
#2 /engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(249): Smarty_Internal_TemplateCompilerBase->callTagCompiler(âprivate_modifieâŠâ, Array, Array)
#3 /engine/Library/Smarty/sysplugins/smarty_internal_compile_private_print_expression.php(65): Smarty_Internal_TemplateCompilerBase->compileTag(âprivate_modifieâŠâ, Array, Array)
#4 /engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(465): Smarty_Internal_Compile_Private_Print_Expression->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL)
#5 /engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(249): Smarty_Internal_TemplateCompilerBase->callTagCompiler(âprivate_print_eâŠâ, Array, Array)
#6 /engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(2358): Smarty_Internal_TemplateCompilerBase->compileTag(âprivate_print_eâŠâ, Array, Array)
#7 /engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r28()
#8 /engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(28)
#9 /engine/Library/Smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(34, â{/â)
#10 /engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile(â{* MaincategoriâŠâ)
#11 /engine/Library/Smarty/sysplugins/smarty_internal_compile_include.php(146): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Enlight_Template_Default))
#12 /engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(465): Smarty_Internal_Compile_Include->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL)
#13 /engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(249): Smarty_Internal_TemplateCompilerBase->callTagCompiler(âincludeâ, Array, Array)
#14 /engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(2388): Smarty_Internal_TemplateCompilerBase->compileTag(âincludeâ, Array)
#15 /engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r36()
#16 /engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(36)
#17 /engine/Library/Smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(10, â\n             âŠâ)
#18 /engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile(â{block name="frâŠâ)
#19 /engine/Library/Smarty/sysplugins/smarty_internal_compile_include.php(146): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Enlight_Template_Default))
#20 /engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(475): Smarty_Internal_Compile_Include->compile(Array, Object(Smarty_Internal_SmartyTemplateCompiler), Array, NULL, NULL)
#21 /engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(249): Smarty_Internal_TemplateCompilerBase->callTagCompiler(âincludeâ, Array, Array)
#22 /engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(2388): Smarty_Internal_TemplateCompilerBase->compileTag(âincludeâ, Array)
#23 /engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3101): Smarty_Internal_Templateparser->yy_r36()
#24 /engine/Library/Smarty/sysplugins/smarty_internal_templateparser.php(3201): Smarty_Internal_Templateparser->yy_reduce(36)
#25 /engine/Library/Smarty/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(10, â\n             âŠâ)
#26 /engine/Library/Smarty/sysplugins/smarty_internal_templatecompilerbase.php(192): Smarty_Internal_SmartyTemplateCompiler->doCompile(â{block name="frâŠâ)
#27 /engine/Library/Smarty/sysplugins/smarty_internal_template.php(187): Smarty_Internal_TemplateCompilerBase->compileTemplate(Object(Enlight_Template_Default))
#28 /engine/Library/Smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource()
#29 /engine/Library/Enlight/View/Default.php(276): Smarty_Internal_TemplateBase->fetch()
#30 /engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(216): Enlight_View_Default->render(Object(Enlight_Template_Default))
#31 /engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(242): Enlight_Controller_Plugins_ViewRenderer_Bootstrap->renderTemplate(Object(Enlight_Template_Default))
#32 /engine/Library/Enlight/Controller/Plugins/ViewRenderer/Bootstrap.php(136): Enlight_Controller_Plugins_ViewRenderer_Bootstrap->render()
#33
Â
Weis jemand, worann das liegen könnte?
Mit freundlichen GrĂŒĂen
Saugertyp