bart
Active member
I would like to add a category image in all resource-cetagories. There's one place where I can't get it working: in the title.
I would really like to change this:
into this:
It shows the image, but the title of the page is changed as well.
I've been trying to get it done with a span-element, but that didn't work out either, because it leave a 50-pixel-high chunk of white under the title.
Pfffeeeww. Something so futile is taking me a whole morning...
Does anyone have a tip?
I would really like to change this:
Code:
<xen:title>{$category.category_title}</xen:title>
Code:
<xen:title><img src="path_to_image/{$_category.resource_category_id}.png">{$category.category_title}</xen:title>
It shows the image, but the title of the page is changed as well.
I've been trying to get it done with a span-element, but that didn't work out either, because it leave a 50-pixel-high chunk of white under the title.
Code:
<xen:title>{$category.category_title}</xen:title><span style="float:left;position:relative;top:-56px;left:6px;"><img src="path_to_image/{$category.resource_category_id}.png" width=48 height=48></span>
Pfffeeeww. Something so futile is taking me a whole morning...
Does anyone have a tip?
Last edited: