View Single Post
  #11  
Old 07-25-2009, 09:13 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default 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)
Reply With Quote