Steve,
Digging a little deeper, I believe there may be an issue with the way the code is handling the [IMAGE] tag, and why I’ve been confused.
I believe the original code was designed to return the PATH of the image. In lstObjects.ItemDatabound event handler shows that a LiteralControl is being added to the Controls Array
objPlaceHolder.Controls.Add(New LiteralControl(oRepositoryBusinessController.FormatImageURL(objRepository.ItemId)))
It can be confirmed by looking at one of the template.html files.
<a href="[IMAGE]" target="_blank">
img src="[THUMBNAIL]" border="0" alt="Thumbnail" />
</a>
However, since I want the image to be an image button that when clicked starts a download, I see in the lstObjects.ItemDatabound event handler that an ImageButton control is being added to the Controls Array
Dim ibtn As New ImageButton
objPlaceHolder.Controls.Add(ibtn)
In which case for my template.html file I simply want to place an
[IMAGE] tag for where I want the image to be located.
<span>[IMAGE] </span>
Thus, if the user is not in the Download group, all that was injected with the LiteralControl, and the reason why I was only seeing the “path” to the image and not the image itself.