List view limit | Community
Skip to main content
Level 4
March 2, 2018
Solved

List view limit

  • March 2, 2018
  • 7 replies
  • 3861 views

Hi all, how do I change the limit of items returned per 'page' in the list view in /sites.html.

It looks like the default is 40 and we would like to increase that. Is it possible?

Best answer by Rima_Mittal

This can be done by overlaying the node at /libs/wcm/core/content/sites/jcr:content/views/list/datasource and change the 'limit' property on the node.

7 replies

smacdonald2008
Level 10
March 2, 2018

Adjusting the number of items displayed is not a configurable option. This will be a component - a resource type.  You will have to find that resource type and modify it. However, modify AEM scripts like this are not really best practice.

Level 4
March 2, 2018

I figured that might be the case. We wouldn't normally endeavour to change something like this in AEM but since encouraging our content editors to move from classic to touch, there have been lot of comments about the siteadmin in touch. Most of the editors don't like the way the pagination works (i.e. adds more items as you scroll rather than having links to pick a page) so we were going to increase the limit and add more initial items.

Do you know how I'd find the resource type? I've tried changing /libs/granite/ui/components/foundation/layouts/listview but that doesn't seem to be doing much.

smacdonald2008
Level 10
March 2, 2018

I personally have never done that modification. I am not a big fan of adjusting the AEM user interface. However - let me check internally and see if anyone had done this. 

Rima_Mittal
Rima_MittalAccepted solution
Level 4
March 2, 2018

This can be done by overlaying the node at /libs/wcm/core/content/sites/jcr:content/views/list/datasource and change the 'limit' property on the node.

Level 4
March 5, 2018

That's perfect, thanks!

smacdonald2008
Level 10
March 5, 2018

Excellent response!

Level 3
February 21, 2025

Hi, just wanted to resurface this issue.

 

I found out that if you overlay /libs/wcm/core/content/sites/jcr:content/views/list to /apps/wcm/core/content/sites/jcr:content/views/list and change the values in 3 locations (limit, size, and datasource/limit), it seems to work great!

 

Just wondering if there are any downsides of doing this? Would it affect anything in View Mode on the Author instance? Is this purely for the Sites list view navigation? Would it slow any queries down? I'm assuming too that nothing would be affected on the Publisher since it's completely separate, but just throwing that question out there.

 

Thanks in advance!