Ok, on to the next problem.
I have two images I've stored in the database, an original and its thumbnail. I know the data in the database is good; I can download them via FrontBase Manager and look at them in Preview. However, when I try to display the thumbnail in my component like so:
Thumbnail : WOImage { data = aPanel.images.thumbnail; mimeType = "image/jpeg"; }
All I get is the missing image marker. The String fields in aPanel are displaying, so I know things are generally working, just not the images. BTW, images is the name of the relationship between two EOModels. Do I have to do something to get the "foreign" items to fetch? I tried checking the "perform deep inheritance fetch" box in EOModeler, since that sounded vaguely relevant, but it didn't help.
After I get past that, I have two more things I'm stumped on, might as well get them in the queue now:
1. I want to display the thumbnail as a hyperlink which will take the user to the bigger image. I'm unsure of what to use as the action of the hyperlink, to return the big image.
2. Right now I have these fields in a WORepetition. I want to eventually have them display in rows of six across. I'm sure I can work out a way to do this with a counter, spitting out the closing and opening tr tag every six items. Is there a more sophisticated way to do this?
thanks,
janine
|