Jump to content

If category - display div help


Recommended Posts

Im trying to create a if statement in my cms.tpl of the generic 1.5 theme.

 

What I want is that if the category is "blog" (ID=6), then display the div.

 

I tried {if $category=='blog'},<div></div>{/if} but that just hid the div on all categories

 

Please please help!

Link to comment
Share on other sites

The category of the CMS. I have several categories (eg news, directory, etc), one being blog (its id is 6). I only want a certain div to display on the CMS pages that belong to the BLOG category. I will try cms>id (which will be 6) and will let you know

Link to comment
Share on other sites

×
×
  • Create New...