Forgive me if this already exists: I'd like to see a function that returns merely a path to an imagecached image, as opposed to a full HTML tag. Sometimes I just want to link to an imagecached image, such as when I want to pop one up in a lightbox. Thanks!
Comments
Comment #1
sansui commentedI was just on here looking for this. For example, in a custom node.tpl.php this kinda works, but ends up duplicating the sites/default/files path etc twice:
Would be nice to just have that path accessible for these situations, since it's nice to be able to link to a lightbox popup in a modified node tpl
Comment #2
dman commentedWere you looking for
Comment #3
sansui commentedThat works great actually :)
<?php print imagecache_create_url('media', $imagePath); ?>Comment #4
traviscarden commentedAh, nice. Thank you, @dman. Do you suppose this is worth noting on the module's documentation page?
Comment #5
mittalpatel commentedThis really helped... Just exactly what I was looking for...
Thanks...
Comment #6
drewish commented