Hi All,

I have a situation to give  Alternate Text in <img>, I have used copyright 
property of image to use it as Alternate Text

Below is the template definition:

[#macro image image imageClass]
 [#assign imageAlt=image.copyright!]
  [#if image?has_content]

      [#if image.link??]
          <dl class="${imageClass}">
              <dt><img src="${image.link}" width="190" height="145" 
alt="${imageAlt}" /></dt>
            [#if image.caption?? || image.title??]<dd class="caption" 
style="color : rgb(46,177,53)">${image.caption!image.title}</dd>[/#if]

                        </dl>

      [/#if]

[#else]
          <img src="" width="190" height="145" alt="${imageAlt}" />
      [/#if]
[/#macro]

As mentioned above I want the Alternate Text to be shown when image is not 
present in the dialog and alternate text is shown.  If I use Copyright property 
as Alt Text; I am facing issues as image is not present and I am accessing  
[#assign imageAlt=image.copyright!]. Please give some other idea to implement 
it.

--El Nino

________________________________
::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------


----------------------------------------------------------------
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