I have created an extra field that is an image and am using
<?php echo $this->item->extraFields->PartImageOne->value; ?>
to pull in the image. This works great but I want to wrap the image tag in an <a> tag and set it up to open the prettyphoto lightbox when the image is clicked.
To do so I need to be able to just populate the href in the <a> tag with the source url of the image like this:
<a href="path/to/image" rel="prettyPhoto"><?php echo $this->item->extraFields->PartImageOne->value; ?></a>
How do I get the url of the image so I can use it in my <a>?
Thanks!