gero Posted September 4, 2013 Posted September 4, 2013 Как скрыть нужную мне категорию в левом блоке. Версия 1.5.4 Если вношу изменения с <li {if isset($last) && $last == 'true'}class="last"{/if}> <a href="{$node.link|escape:'htmlall':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if} title="{$node.desc|escape:'htmlall':'UTF-8'}" style="background:none;padding-left:7px">{$node.name|escape:'htmlall':'UTF-8'}</a> </li> на <li {if isset($last) && $last == 'true'}class="last"{/if}> <a href="{$node.link|escape:'htmlall':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if} {if ($node.id == '275' || $node.id == '280'}style="display: none"{/if} title="{$node.desc|escape:'htmlall':'UTF-8'}" style="background:none;padding-left:7px">{$node.name|escape:'htmlall':'UTF-8'}</a> </li> или на <li {if isset($last) && $last == 'true'}class="last"{/if}> {if $node.id != 280} <a href="{$node.link|escape:'htmlall':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if} {if $node.id != 280 {/if} title="{$node.desc|escape:'htmlall':'UTF-8'}" style="background:none;padding-left:7px">{$node.name|escape:'htmlall':'UTF-8'}</a> </li> </if> вылезает вот эта ошибка Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "/var/www/u1368230/data/www/shopthule.ru/themes/default/modules/blockcategories/category-tree-branch.tpl" on line 28 "<a href="{$node.link|escape:'htmlall':'UTF-8'}" {if isset($currentCategoryId) && $node.id == $currentCategoryId}class="selected"{/if} {if ($node.id == '275' || $node.id == '280'}style="display: none"{/if} title="{$node.desc|escape:'htmlall':'UTF-8'}" style="background:none;padding-left:7px">{$node.name|escape:'htmlall':'UTF-8'}</a>" - Unexpected "}"' in /var/www/u1368230/data/www/shopthule.ru/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php:665 Stack trace: #0 /var/www/u1368230/data/www/shopthule.ru/tools/smarty/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /va in /var/www/u1368230/data/www/shopthule.ru/tools/smarty/sysplugins/smarty_internal_templatecompilerbase.php on line 665 Помогите товарищи. Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now