Uploaded image for project: 'Magnolia Standard Templating Kit (closed)'
  1. Magnolia Standard Templating Kit (closed)
  2. MGNLSTK-1344

EventsListModel.getAllEventsLink() should include searchRoot when searching the matching overview page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • 2.7.1
    • None
    • None

    Description

      In the case where a site has multiple event list sections (and therefore Event Overview pages), the Search Hierarchy is used to define the search root, which typically would be the Event Overview page itself. However, the getAllEventsLink() function searches for eventsOverview pages within the sub-pages of the search root, therefore always returning null.

      I haven't included a patch as the function depends on a utility method 'stkFunctions.getNearestContentByTemplateCategorySubCategory(...)', so it looks like a new function is required to include the siteRoot, but I wasn't sure of the best practice here.

      Also please note that the same problem also relates to NewsListModel.getAllNewsLink().

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              bkazazes Brad Kazazes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: