Discussions
Additional Item Images
<%=getCurrentAttribute('item','storedisplayimagehtml')%>
When I add a custom image field and put it in an <img src="<%=getCurrentAttribute('item','custitemcustom_field_2nd_item_image')%>">
It works fine until an Item doesn't have a second image, then a broken image icon is displayed.
I am looking for a script or code for an "if" argument or an "else" type command. Seems this is being done in the code behind storedisplayimagehtml for the items main image, but I can't see the argument there.