-
Bug
-
Resolution: Won't Do
-
Major
-
2.2
-
None
-
-
Empty show more show less
The template feedSubscriptions.ftl retrieves the author list using the method getItems available on the model FeedSubscriptionsModel.
This method returns a Colloection<Node> which does not expose the "getters" used in the template such as getAuthor.
Thus, on line 22, the following statement throws an exception.
[#list authorsList?sort_by('author') as entry]
The fix consists in converting the Collection<Node> into a Colllection<ContentMap> using cmsfn.asContentMapList:
<link rel="stylesheet" href="${ctx.contextPath}/.resources/planet.css" type="text/css"/> [#-------------- INCLUDE AND ASSIGN PART --------------] [#-- Assigns: Definition parameters --] [#assign authorsList = cmsfn.asContentMapList(model.items![])] [#assign linkAuthor = content.linkAuthor!false] [#assign maxResults = content.maxResults!5]
Acceptance criteria