I'm using image cache with a jQuery slider and each image needs to have a specific ID. I'm calling it in a .tpl file. The id can be hard coded into the .tpl file, thats actually what a I prefer.

I'm currently calling it with...

<?php
print theme('imagecache', 'Portfolio', $field_images[0]['filepath']);
?>

Is there anything I can do to add an ID to the output of that image?

I looked around and couldn't find anything, sorry if this is a repeat.

Comments

Shven’s picture

print theme('imagecache', 'name_of_your_preset', $field_images[0]['filepath'], 'alt text', 'title text', array('id' => 'unique-id'));

fizk’s picture

Status: Active » Closed (fixed)

As per #1.