I show dynamic content depending on category. The code works perfectly fine, except I would like to combine multiple getId in 1 if statement. Currently every category Id is called per if or elsif statement. Wich gives me a lot of extra code. Is it possible to combine mulitple category id's in 1 if statement???
The current code:
<?php $category = Mage::getModel('catalog/layer')->getCurrentCategory();?>
<?php if($category->getId()==1): ?> text 1
<?php elseif($category->getId()==2): ?> text 1
<?php elseif($category->getId()==3): ?> text 1
<?php else: ?> text 2
<?php endif; ?>