By YoshiN on
I'm using CCK and have an image field (using imagefield.module).
Is there any way to change the output of particular imagefield of particular content type?
I have found that I can use function mytheme_imagefield_image() in my template.php but this will affect all the imagefield items. I need to manipulate one field only. Is this possible?
Thanks.
Comments
Did you try...
... to make a specific template file for your particular content type? With a div around the image you want to theme you should be able to use your CSS to theme 1 specific image.
Solved!
Thanks and sorry for not replying. I've been away home for a while.
I needed to add some attributes to img tag, so wrapping with div wasn't quite a solution.
However, I decided to modify the img tag using preg_replace in the theme. And yes, it works.
Thanks for your advice.