Hi Guys,
I am experiencing a weird behavior of the RenderItemList method.
If I use this request:
@RenderItemList(new {
ItemType = "Dw_Page",
ListSourceType = "SelfPage",
ItemFieldsList = "*",
ListTemplate = "ItemPublisher/List/Loop-1col-image-summary.cshtml",
ListPageSize = 10,
ListOrderBy = "Data",
ListOrderByDirection = "Descending",
Filter = filterValue
})
I will always get 10 results and no paging no matter how many articles I have underneath the Page where I am using the call on.
However, if I use the following code:
@RenderItemList(new {
ItemType = "Dw_Page",
ListSourceType = "Area",
ListSourceArea = 1,
ItemFieldsList = "*",
ListTemplate = "ItemPublisher/List/Loop-1col-image-summary.cshtml",
ListPageSize = 10,
ListOrderBy = "Data",
ListOrderByDirection = "Descending",
Filter = filterValue
})
The behavior is correct. Please note that the filterValue was adjusted to mimic the SelfPage behavior.
I have noticed this issue only after upgrading to 9.2.x branch. The 9.0.x and 9.1.x versions did not had this problem.
Thanks,
Adrian