嗨,我已将搜索portlet添加到我的门户网站。如您所见,每页显示的结果数的默认值为20.我想将此大小更改为5.我可以更改它吗?
答案 0 :(得分:2)
每页显示的默认条目数 - delta - 可以在portal-ext.properties中配置:
##
## Search Container
##
#
# Set the default number of entries to display per page.
#
search.container.page.default.delta=20
值得一提的其他物业:
#
# Set the available values for the number of entries to display per page. An
# empty value, or commenting out the value, will disable delta resizing.
#
# Always include the value specified in the property
# "search.container.page.default.delta", since it is the default page size
# when no delta is specified. The absolute maximum allowed delta is 200.
#
search.container.page.delta.values=5,10,20,30,50,75
#
# Set the maximum number of pages available above and below the currently
# displayed page.
#
search.container.page.iterator.max.pages=25
#
# Set this to false to remove the pagination controls above or below
# results.
#
search.container.show.pagination.top=true
search.container.show.pagination.bottom=true