Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » RenderItemList problem with ListPageSize

RenderItemList problem with ListPageSize

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

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

 

 


Replies

 
Vladimir
Reply

Hi Adrian,

I fixed this bug just recently - 31405, 

it should be included in next hotfix for 9.2  

 

Kind regards,

Vladimir

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Adrian

The problem TFS#31405 "ItemPublisher:Items.TotalCount tag in the itempublisher module broken" has now been fixed in hotfix version 9.2.9

You are able to find this build in the download section:

http://doc.dynamicweb.com/releases-and-downloads/releases

Please contact Dynamicweb Support if you need any additional help regarding this.

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Thank you, Kristian

 

BR,

Adrian

 

You must be logged in to post in the forum