Hi All,

I have to implement a feature which is universal but show up to me in Magnolia 
as something else.

Alternate text of image is shown when image is not available so that the user 
doesn?t see any illegal distortion or something else but in magnolia it is not 
the case, the image has content then Alternate Text is done and there is no 
code implemented for non-existing image????

I have to fill up this code, has anyone done it or correct me if  I am wrong!!!

[#macro image image imageClass]

  [#if image?has_content]
      [#assign imageAlt=image.caption!"Image "+content.subtitle!]
  
      [#if image.title?? || image.caption?? || image.copyright?? || 
image.description??]
          <dl class="${imageClass}">
              <dt><img src="${image.link}"  alt="${imageAlt}" /></dt>
              <dd class="zoom"><a href="${stk.getAssetVariation(image, 
'zoom').link}" title="${i18n['link.zoom.title']}" 
rel="showbox">${i18n['link.zoom']}</a></dd>
              [#if image.caption?? || image.title??]<dd 
class="caption">${image.caption!image.title}</dd>[/#if]
              [#if image.copyright??]<dd 
class="copyright">${image.copyright}</dd>[/#if]
              [#if image.description??]<dd 
class="longdesc">${image.description}</dd>[/#if]

                        </dl>
      [/#if]
<!- -  There is no else part for handling Alt Text when image is not present -- 
> 
   [/#if]

[/#macro]

Thanks in Advance

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=ef042f57-d189-45b2-b4cc-2f56966e1726


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