Re: How do you vary the Header via Category?
I think surrounding it with {literal} and {/literal} should keep smarty compiler from trying to figure out the brackets. So, this should compile without smarty errors:
Code:
<style type="text/css">
<!--
{if $current_category.categoryid eq 123}
{literal}#header {background: #ffffff url(images/neon_lights/head_bg_123.gif) repeat-x 1px top;}{/literal}
{/if}
{if $current_category.categoryid eq 456}
{literal}#header {background: #ffffff url(images/neon_lights/head_bg_456.gif) repeat-x 1px top;}{/literal}
{/if}
-->
</style>
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
|