Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31676

Allow to specify a fixed offset in a paginated query field

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 2.5.10, 3.0.4, 3.1.x-dev
    • None

    Description

      When running a paginated query, the offset is forced to the value calculated for the page. If an offset is set in parameters or in the query type itself, it will get overwritten by the pagination methods.

      This prevents from using the offset to split a list of items into different fields.

      Any offset that is predefined in the query field should be added to the values used for pagination.

      Example:
      Blog container that has Blog post children. The blog type has two query fields:

      • highlighted_post : returns the most recent blog post, using an offset of 0 and a limit of 1
      • posts: all blog posts except the highlighted one, using an offset of 1

      posts should always ignore the first item, and its items count (used in pagination) should always be the total minus 1.

      Attachments

        Activity

          People

            bertrand.dunogier@ibexa.co Bertrand Dunogier
            bertrand.dunogier@ibexa.co Bertrand Dunogier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: