I want my categories to have the image above the content and the left column, whilst using 2columns-left.phtml and don't want an image placeholder showing if there's no image. So I need an if statement but not sure how to go about it!
Here's my code so far
<?php $categoryImage = Mage::getModel('catalog/layer')->getCurrentCategory()->getImage(); //Get the file name of the Image stored for the category ?> <img src="<?php echo Mage::getBaseUrl('media').'catalog/category/'.$categoryImage ?>" />
If anyone could help that would be much appreciated.