I've successfully setup imagedataobjectmanager to manage my images on a dataobject for use in a basic lightbox setup. I've added in the title field to give each image a title. The following code works perfectly with how I've setup my database:
<% control Photos %>
<a href="$Photo.URL" <% if Title %> title="$Title" <% end_if %>">$Photo.CroppedImage(110,110)</a>
<% end_control %>
I don't think you need the other code, as it works fine.
My question is, right now it links to the full size image that is uploaded via $Photo.URL. I'd like to link to a resized image in case the original image the client uploads in the CMS is too large.
Is the best case to subclass the image class or am I missing something obvious? I tried nesting the Photo control within the href, but that produced errors.