I'd like to wrap photos in the singleBody view in a <div> with fixed width. Now the question is, how to get the actual width of the photo that gets displayed. From the smarty debug info, I constructed the following:
... inside singleBody.tpl:
{$layout.imageViews[$layout.imageViewsIndex].width}
That works for now, but is this method safe to use (e.g. are there situations where the $imageViews array is empty?).
Thanks,
Christian