Jump to content

Как скрыть категорию в блоке


Recommended Posts

Как скрыть нужную мне категорию в левом блоке. 
Версия 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 "&lt;a href=&quot;{$node.link|escape:'htmlall':'UTF-8'}&quot; {if isset($currentCategoryId) &amp;&amp; $node.id == $currentCategoryId}class=&quot;selected&quot;{/if} {if ($node.id == '275' || $node.id == '280'}style=&quot;display: none&quot;{/if} title=&quot;{$node.desc|escape:'htmlall':'UTF-8'}&quot; style=&quot;background:none;padding-left:7px&quot;&gt;{$node.name|escape:'htmlall':'UTF-8'}&lt;/a&gt;" - 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 


Помогите товарищи.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...