is the following possible in a template using $Top and control loops?
I have two functions in my controler (extends Page_Controler).
getAlbumImages() ... returns a DataObject with all images contained in folder: assets/images/ getAlbumTitle($imageFile) ... should return a image description from the image filename (XX_image_description_in_file.ext ==> image description in file)
In my template I use something like:
<% if getAlbumImages %> <% control getAlbumImages %> <a href="$URL" rel="album" title="$Title">$SetRatioSize(150,150)</a> <% end_control %> <% end_if %>
Is there any chance to use something like this instead:
<a href="$URL" rel="album" title="$Top.getAlbumTitle($Title)">$SetRatioSize(150,150)</a>
So far everything works fine, I just would like to have the image title (XX_my_image_title.jpg more clean ==> my image title).
If the template thingy doesn´t work, what else could I do?