hi:
i have a cck field called field_image that i output like this:
<?php foreach ((array)$field_image as $item) { ?>
<?php print $item['view'] ?>
<?php } ?>
and it displays the full image i uploaded.
But i want to integrate it with the lightbox module like this:
<a href=" http://localhost/myimagefileaddress" rel="lightbox">Click here for Full Image</a>
since the first code snippet outputs the "img src" code to display the image I get an error with the link.
how do i output the url address of my field_image cck alone?
thanks
Comments
Comment #1
fluitfries commentedDon't have the means to give you exact code right now, but I swiped my lightbox code right out of the Meta theme. It works like a charm!
Check it out under the Themes section of drupal.org.
Comment #2
ezichko commentedi had a look but that seems to be for the gallery module.
I tried replacing VIEW for VALUE here:
but nothing gets displayed.
any ideas?
Comment #3
marcoBauli commentedtry adapting this:
works here (note i am using imagecache module also!)
cheers
Comment #4
ezichko commentedthat works nicely, thanks!
Comment #5
marcoBauli commentedsetting as fixed to help clean-up the queue
Comment #6
(not verified) commented