Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-123825

As a Marketer I want to have limited number of content per page using pagination

Details

    Description

      Intro/Context:

      The goal of this story is to propose a pagination configuration options for the Collection Display fragment as a solution to the above need. 

      Pagination

      Given the page creator wants to place a Pagination on the Collection Display Fragment

      -

      When the page creator accesses the "Collection Display" fragment configuration

      Then the page creator can enable/disable the pagination on the Collection by selecting one of the following:

      • none (the pagination is not shown)
      • regular (a complete pagination)
      • simple (next/previous buttons)

      -

      Max Items for the Collection

      When the System Admin wants to increase the Max number of Items for the collections in pages

      Then the user can do so by modifying the ( the property value ) in portal property:

      • search.container.page.max.delta

      path to file: liferay-portal/portal-impl/src/portal.properties

      -

      Nb of items per page

      When the Page creator wants to configure the nb of items per page

      Then the Page Creator can select the number of items per page to be shown (by default 5 items per page):

      • The number of intervalle is then calculated like this :
        • formula: Nb intervalles = integer( Max ( total itemspage.max.delta)/ nb of items per page)+1
      • AND the Max items for collection is shown: 200 items maximum

      -

      Using the "Simple" pagination

      When the User accesses to the Pagination elements on the page

      Then the User can navigate through the pages using NEXT / PREVIOUS page buttons

      -

      Using the "Regular" pagination

      When the User accesses to the Pagination on the page

      Then the User can :

      • click on a page number and the page displayed
      • click on the next/previous buttons to switch pages

       

      -

      Figma Mockup

      Test Scenarios

      Test Scenarios Test Strategy Kind of test Is it covered by FrontEnd ? (JS-Unit) Is it covered by BackEnd ? (unit or integration) Could it be covered by POSHI?
      The user could navigate through pages in Collection Display with the Simple pagination Critical Manual No No Yes
      The user could navigate through pages in Collection Display with the Numeric pagination Critical Manual No No Yes
      The user could define the maximum of items per page in Collection Display Critical Manual Yes No Yes
      The user could view warning message when defined value exceeds limitation High  Manual  Yes  No  Yes
      The user could select Display All Collection Items in Collection Display with pagination Critical Manual   Yes  No Yes
      Export/import of page definition takes into account new parameters for pagination Critical Manual No Yes No

      Attachments

        Issue Links

          1.
          Add selector to collection general panel and add the pagination component LPS-133693 Technical Task Closed Product Team Echo  
          2.
          Support pagination for Collection Display Fragment on backend for view mode LPS-134363 Technical Task Closed Ruben Pulido  
          3.
          Ensure pagination configuration is saved in Fragment Compositions and Export & Import LPS-134364 Technical Task Closed SE Support  
          4.
          Support pagination for Collection Display Fragment for edit mode LPS-134737 Technical Task Closed Verónica González  
          5.
          Include search.container.page.max.delta value in config so a message can be displayed if numberOfItemsPerPage exceeds that value and honor it when retrieving collection data LPS-134822 Technical Task Closed Verónica González  
          6.
          Add pagination component to view mode LPS-134951 Technical Task Closed Product Team Echo  
          7.
          Remove pagination parameters from URL when entering edit mode since they may be outdated after publishing LPS-135009 Technical Task Closed Product Team Echo  
          8.
          Test Scenarios Coverage | Test Creation LPS-135524 Technical Testing Closed David Gutiérrez Mesa  
          9.
          Test Scenarios Coverage | Created Test Review LPS-135926 Technical Testing Closed Yang Cao  
          10.
          Product QA | Test Validation - Round 1 - Passed LPS-135525 Technical Testing Closed David Gutiérrez Mesa  
          11.
          Test Scenarios Coverage | Backend LPS-135526 Technical Testing Closed Product Team Echo  
          12.
          Test Scenarios Coverage | Frontend LPS-135527 Technical Testing Closed Product Team Echo  
          13.
          Cannot add fragment into Collection Display with Pagination LPS-135670 Impedibug Closed Yang Cao  
          14.
          The pagination doesn't work at Preview mode LPS-135671 Impedibug Closed Yang Cao  
          15.
          Add new option to general panel for displaying all collection items LPS-135803 Technical Task Closed Verónica González  
          16.
          Add minimum to number of items inputs LPS-135804 Technical Task Closed Product Team Echo  
          17.
          Rename input labels LPS-135805 Technical Task Closed Product Team Echo  
          18.
          The calculation of the total pages is wrong LPS-135806 Impedibug Closed Yang Cao  
          19.
          Change "Regular" pagination by "Numeric" pagination LPS-135877 Technical Task Closed Product Team Echo  
          20.
          The maximum number of items does not change when the collection is updated LPS-136505 Impedibug Closed Yang Cao  

          Activity

            People

              jurgen.kappler Jürgen Kappler
              tarik.demnati Tarik Demnati (Inactive)
              Verónica González Verónica González
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  7.4.13 DXP GA1
                  7.4.3.4 CE GA4
                  Master