Details
-
Bug
-
Resolution: Won't Do
-
Minor
-
None
-
2.7.1
-
None
-
None
-
-
Empty show more show less
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