When clicking on Construction, for example, a a Summary template shows a list of all companies tagged as belonging to the Construction category.
My client wants a different banner ad to be displayed on each category listings page. So on the Construction listings page, a Construction related banner ad would be displayed.
Each Company Directory category can have an image assigned. My plan was to use this as the banner ad.
I've (just about) figured out how to get the category images to display in the Category List template (on the main directory landing page):
Code: Select all
<img src="/uploads/images/ads/{$obj->image}" />
I guess I'd need something like:
If current category = x then display category x image
If current category = y then display category y image
Any ideas?
I'm running CMS MS 1.11.4 and Company Directory 1.17.5.
Any help gratefully received.