Discussions
access image alt field from item template
Hello,
Is there anyway to access images alt field from item template?
What I would to do is using
<img src="<%=getCurrentAttribute('item', 'storedisplaythumbnail')%>" />
instead of using
<%=getCurrentAttribute('item', 'storedisplaythumbnailhtml')%>
reason: I used function onload for images, and I would to display the alt filed value for the image I used on mouse hover, so, is there any tag I can use to access the alt field??
example: <img src="<%=getCurrentAttribute('item', 'storedisplaythumbnail')%>" alt="<%=getCurrentAttribute("item","storedisplaythumbnailALT")%>" />
Note: (When I hover the mouse in item record on NS, the alt displayed correctly)