Glen - loving the mod thank you - and just so people know this works on my new 1.5.4 shop :)
Anyway I was wondering if it is possible to make it work with sub-cats - or rather what is happening is that if I go via menu I get a _448 sub cat - works! but if I go via home page the sub cat is actually 7_448 and therefore doesn't show it, or rather is looking for the banner _7 not _7_448
Is it possible to have _448 & 7_448 both showing same banner?
Oh code I am using:
this just adds a large banner to the relevant page - no CSS needed :)PHP Code:<?php
//Smart Backgrounds
$smart_image = '';
if (($current_page_base == 'index' and $_GET[cPath] != 0) or $current_page_base == 'product_info') { //add _ and top cat id to js filename
$smart_image = '_' . (int)$_GET[cPath];
}
// /Smart Backgrounds
?>
<?php echo zen_image(DIR_WS_TEMPLATE_IMAGES . 'smartbanners' . smart_backgrounds('.jpg', 'sidebox') . $smart_image . '.jpg', '');?></div>
Not sure if you are still modding this plugin :) if not I will apply more brain power tomorrow
Thanks
Sarah



Reply With Quote
