Il 10.06.2011 11:52, Magnolia Forums (on behalf of El NIno) ha scritto:

Hi All,

Hi,
you can do something like:

[#if image?has_content]
...
[#else]
   <img src="" alt="${content.caption/description}" />
   ... or ...
   <p>${content.caption/description}</p>
[/#if]

Anyway, I wouldn't do it. If image is not present, simply do not show it. ALT attribute is not a replacement of a missing image, is a text that "enforce" the image, going to help people with cognitive disease (or spider) to better understand the content of the image.

HTH,
Matteo



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to