[MGNLSTK-1344] EventsListModel.getAllEventsLink() should include searchRoot when searching the matching overview page Created: 31/Jan/14 Updated: 02/Jul/18 Resolved: 02/Jul/18 |
|
| Status: | Closed |
| Project: | Magnolia Standard Templating Kit (closed) |
| Component/s: | None |
| Affects Version/s: | 2.7.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Brad Kazazes | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Template: |
|
| Acceptance criteria: |
Empty
|
| Date of First Response: |
| 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(). |
| Comments |
| Comment by Jan Haderka [ 02/Jul/18 ] |
|
STK have been deprecated in September 2017. As part of this project nearing end-of-life, we are not planning to fix any of the existing issues except for the critical security issues. For more details, please consult documentation. |