Forum Discussion

jaikumar1's avatar
jaikumar1
Mentor
7 years ago

How to change the pagination

Hi,

Could you please advise me, how can i change the pagination and which will be used in other page of lithium. For example, i looking into use the search page pagination into unread post page. 

 

Because in search page pagination, displaying the number of records in the result set, and also displays number of starting (from) and ending(to). 

 

 

3 Replies

  • jaikumar1's avatar
    jaikumar1
    Mentor
    7 years ago
    Hi VikasB, Those page getting render on default pagination and i'm not created any component on those pages. I'm just looking into change the pagination and which used in search page.
  • VikasB's avatar
    VikasB
    Boss
    7 years ago

    jaikumar1

    Lithium does not offer any setting to change the pagination. Here is the related discussion

    https://community.lithium.com/t5/Support-Forum/Change-pager-on-SearchPage/m-p/364705#M12322

    You can create the custom pagination like below but it would require extra efforts

    <#assign pageable_item = webuisupport.paging.pageableItem.setCurrentPageNumber(page_number).setItemsPerPage(results_list_size).setTotalItems(count).setPagingMode("enumerated").build />
    <@component id="common.widget.pager" pageableItem=pageable_item />