Alt text for random images

Hi,


I have created an asset list div that displays a random image each time a the page is reloaded. However, i can't seem to display any alt text for them (hence accessibility issues). I would normally put the alt text into the code in the edit contents window, but there's not one in an asset listing and if I enter it in the details screen of the image, it doesn't come out in the source.



Is there any other way I can have alt text for these images?



Cheers,



Richard


You need to configure your asset listing so that it builds the <img> tag manually. Switch your Type Formats bodycopy to Raw presentation and Raw HTML and you can use the following:

[html]<img src="%asset_url%" alt="%asset_attribute_alt%" width="%asset_attribute_width%" height="%asset_attribute_height%" />[/html]

If you customise the Type Format for the Image asset type, you can see those keywords in the drop-down list.

Thanks Avi, that worked.


Richard