-
Bug
-
Resolution: Fixed
-
Major
-
2.0.2
-
None
-
None
-
-
Empty show more show less
Accessing the following search result :
http://demoauthor.magnolia-cms.com/demo-project/service/search-result.html?queryStr=features
FreeMarker template error!
Error on line 18, column 5 in templating-kit/components/features/searchResult.ftl
item.title!item.@name is undefined.
It cannot be assigned to itemTitle
The problematic instruction:
----------
==> assignment: itemTitle=item.title!item.@name [on line 18, column 5 in templating-kit/components/features/searchResult.ftl]
in user-directive assignItemValues [on line 46, column 17 in templating-kit/components/features/searchResult.ftl]
----------
Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Error on line 18, column 5 in templating-kit/components/features/searchResult.ftl
item.title!item.@name is undefined.
It cannot be assigned to itemTitle
at freemarker.core.Assignment.accept(Assignment.java:111)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Macro$Context.runMacro(Macro.java:172)
at freemarker.core.Environment.visit(Environment.java:614)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:221)
at freemarker.core.Iter