Uploaded image for project: 'Magnolia RSS Aggregator Module'
  1. Magnolia RSS Aggregator Module
  2. MGNLRSSAGG-149

Feed subscriptions component does not work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • 2.2.x
    • 2.2
    • None

      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

              Unassigned Unassigned
              nbarbe Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD