![]() |
Dynamic image to display based on cat id?
Is there a way to display a graphic image at the top of the products results page based on category id? or this a hack or module somewhere for this already?
I tried the following but it did not work. <?php $catheadimage = '<img src="/skin/images/catheadimage' . $cat . '.jpg" width="667" height="270" alt="">'; echo "$catheadimage"; ?> |
Re: Dynamic image to display based on cat id?
Don't use php, just put it in the template. Not sure about category id, but I use this for calling an image with the current category name:
<img src="{ImagesDir}/{$current_category.category}.jpg" alt="{$current_category.category}"> |
Re: Dynamic image to display based on cat id?
Thanks that's what i was looking for. Where can I go to find a list of all system variables? Is there a reference?
|
Re: Dynamic image to display based on cat id?
|
Re: Dynamic image to display based on cat id?
Wow, awesome! Thanks.
|
All times are GMT -8. The time now is 07:43 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.