Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-8412

Enable CMS paginated content to be configured at Liquid Template

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Obsolete
    • Major
    • None
    • SaaS, 2.11.2 GA
    • System
    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • 0
    • 0% 0%

    Description

      Request to implement a way to change per_page Liquid Template variable at 3scale CMS. This could allow customers to customize the output size of the generated paginated table.

      For example, at Applications/Index we can use at the top:

          {% assign pagination.per_page = 500 %}
          Pagination:<br />
          Current page: {{ pagination.current_page }}<br />
          Page_size: {{ pagination.page_size }}<br />
          Per_page: {{ pagination.per_page }}<br /><br />
      

      This will result on:

      Pagination:
      Current page: 1
      Page_size: 30
      Per_page:
      

      The per_page is a protected variable (as we can see here: https://github.com/3scale/porta/blob/5fac953d4ce2b8c1508d58cb4d5d76fed27b2812/app/controllers/admin/api/filters/pagination.rb#L60). It can't be changed even using per_page query variable.

      Also, the page_size variable are controlled by per_page, as seen here: https://github.com/3scale/porta/blob/master/lib/developer_portal/lib/liquid/drops/pagination.rb#L68-L70.

      Note: I've also tested to modify page_size variable, without success.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-eazevedo Ernani Azevedo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: