Hello,
Has anyone found a solution on how to add a caption for images taken from the UnifiedFile Summary fields such as Title, Comments, Description, etc?
These can be accessed like this but I am struggling on how to make it a dynamic function:
UnifiedFile file = UnifiedFileSystem.GetFile("/upload/img/news/thumbnails/Image.jpg");
Response.Write(file.Summary.Comments);
Response.Write(file.Summary.Title);
The caption would appear at the bottom of each image if available.
Perhaps i missunderstand you, but the simple solution is to either create your own class that outputs the html-code or even simpler, a user control that does it for you.
UnifiedFile file = UnifiedFileSystem.GetFile("/upload/img/news/thumbnails/Image.jpg"); Response.Write(file.Summary.Comments); Response.Write(file.Summary.Title);
The caption would appear at the bottom of each image if available.