Closed (fixed)
Project:
ImageCache
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2009 at 22:04 UTC
Updated:
3 Jun 2012 at 01:15 UTC
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
Comment #1
Shven commentedprint theme('imagecache', 'name_of_your_preset', $field_images[0]['filepath'], 'alt text', 'title text', array('id' => 'unique-id'));Comment #2
fizk commentedAs per #1.