> If it's a bug, it's the browser's ;) Much like when you do <a href=""> or 
> <form action=""> - when clicking such a link or submitting such a form, 
> thethe browser will request the "current url", i.e the url of the page that 
> had those links. It's the same principle with images, the browser requests an 
> image for that same url.
>
Ahh, yes, right! of course. Looking into some of our templates I find
that the check for the presence of certain images (header, logo,
whatnot) is often created like:
[#if printLogoImageLink??]<img src="${printLogoImageLink}"
alt="${logoAltText}" />[/#if]

A quick check in the freemarker reference suggests that this is
appropriate, but in testing it i find that if printLogoImageLink is
empty/not there, the image tag is printed regardless... using the
printLogoImageLink?has_content buildin fixes the problem. Is this a
freemarker bug?

regards,

Ernst


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