ok probiere ich
Edit History
Also Du meinst so:
<li class="nav-item"> <a class="nav-link active{/if}" data-toggle="tab" href="#product-details" role="tab" aria-controls="product-details" {if !$product.description} aria-selected="true"{/if}>{l s='Product Details' d='Shop.Theme.Catalog'}</a> </li> {/if} <li class="nav-item"> <a class="nav-link {if !$product.description} active{/if}" data-toggle="tab" href="#description" role="tab" aria-controls="description" {if $product.description} aria-selected="true"{/if}>{l s='Description' d='Shop.Theme.Catalog'}</a> </li>
Dann bekomme ich aber eine Fehlermeldung:
(1/1) SmartyCompilerException Syntax error in template "file:/mnt/web506/a3/89/510713489/htdocs/presta/themes/classic/templates/catalog/product.tpl" on line 165 "class="nav-link {if !$product.description} active{/if}"" unclosed '{block}' tag in smarty_internal_templatecompilerbase.php line 165 at Smarty_Internal_TemplateCompilerBase->trigger_template_error('unclosed \'{block}\' tag') in smarty_internal_compilebase.php line 196 at Smarty_Internal_CompileBase->closeTag(object(Smarty_Internal_SmartyTemplateCompiler), array('if', 'else', 'elseif')) in smarty_internal_compile_if.php line 200 at Smarty_Internal_Compile_Ifclose->compile(array(), object(Smarty_Internal_SmartyTemplateCompiler), array(), null, null) in smarty_internal_templatecompilerbase.php line 764 at Smarty_Internal_TemplateCompilerBase->callTagCompiler('ifclose', array(), array()) in smarty_internal_templatecompilerbase.php line 1493 at Smarty_Internal_TemplateCompilerBase->compileTag2('ifclose', array(), array()) in smarty_internal_templatecompilerbase.php line 565 at Smarty_Internal_TemplateCompilerBase->compileTag('ifclose', array()) in smarty_internal_templateparser.php line 2468 at Smarty_Internal_Templateparser->yy_r45() in smarty_internal_templateparser.php line 3383 at Smarty_Internal_Templateparser->yy_reduce(45) in smarty_internal_templateparser.php line 3479 at Smarty_Internal_Templateparser->doParse(5, ' <li class="nav-item"> <a class="nav-link ') in smarty_internal_smartytemplatecompiler.php line 128
???