On 11 Feb 2011, at 16:13, Ernst Bunders wrote:

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

Not really. This property exists, but its value is "". You can verify this in 
the jcr browser, but if the property is in the dialog, then it's going to be 
saved/created with the value entered in the field, i.e "".

Cheers,

-g



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