cancel
Showing results for 
Search instead for 
Did you mean: 

Items per page

fselendic
Champ in-the-making
Champ in-the-making
Is there any way to change the default number of items shown in document browser in Share (which seems to be 50)?
Searched the forums, couldn't find anything related.

Thnx
Filip
3 REPLIES 3

mikeh
Star Contributor
Star Contributor
It's not currently exposed as a preference or component/template property, but can be done relatively easily.

Find documentlist.get.html.ftl in components/documentlibrary and update the setOptions() part to add your desired value
e.g.:
      …
      usePagination: ${(args.pagination!false)?string},
      pageSize: 100,
      highlightFile: "${page.url.args["file"]!""}",
      …
Thanks,
Mike

fselendic
Champ in-the-making
Champ in-the-making
Tnx Mike, works alright.

lnrdolopez
Champ in-the-making
Champ in-the-making
Hello,

In Alfresco 4.2 I make this adding:

pageSize: 100,

in: components/documentlibrary/repo.get.js