Yes it is confirmed and fixed by the MGNLSTK-668.

New release is under way.

Jan

On Jul 23, 2010, at 10:12 AM, Bert Leunis wrote:

> Hi all,
>  
> I’m afraid that in the new version of the STK (1.3.2) the resolution of 
> http://jira.magnolia-cms.com/browse/MGNLSTK-659 leads to a new error. The 
> problem seems to be this line:
>  
>     [#if rootDef.mainArea?if_exists]
>  
> The if_exists directive is deprecated, it is not easy to find documentation 
> about this function. See: http://freemarker.org/docs/ref_depr_builtin.html 
> The if_exists function doesn’t seem to return a boolean. This is part of my 
> stacktrace:
>  
> The problematic instruction:
> ----------
> ==> if-else  [on line 5, column 5 in 
> templating-kit/paragraphs/macros/tocMarkup.ftl]
>  in user-directive tocMarkup [on line 5, column 1 in 
> templating-kit/paragraphs/content/textImage.ftl]
> ----------
>  
> Java backtrace for programmers:
> ----------
> freemarker.core.NonBooleanException: Error on line 5, column 10 in 
> templating-kit/paragraphs/macros/tocMarkup.ftl
> Expecting a boolean (true/false) expression here
> Expression rootDef.mainArea?if_exists does not evaluate to true/false
>  
> The correct statement would be:
>  
>     [#if rootDef.mainArea??]
>  
> A workaround is to adapt the template in the repository by hand. Can anyone 
> confirm this? Then I can report it in jira.
>  
> Regards, Bert
>  
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------



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