Answers.Body: <p>This tweet shows a way to adjust the elements per page dynamically with a query string param -> <a href="https://twitter.com/JakeDohm/status/1157305040278839296?s=20" rel="nofollow noreferrer">https://twitter.com/JakeDohm/status/1157305040278839296?s=20</a> so you could just request 6 or 9 items to get the same result.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-08-20T20:48:31.760Z
Answers.LastActivityDate: 2019-08-20T20:48:31.760Z
Answers.UserDisplayName: dmatthams
Body: <p>I have a query that is pulling entries from a structure with 
  <code>elementsPerPage' =&gt; 3</code></p>
  
  <p>If my pagination looks like this:</p>
  
  <pre><code>Page 1:
  Entries: A, B, C
  
  Page 2:
  Entries: D, E, F
  
  Page 3:
  Entries: G, H, I
  </code></pre>
  
  <p>How should I write the query to get all entries up to page 2? </p>
  
  <pre><code>Request Page 2 Results:
  
  Entries: A, B, C, D, E, F
  
  Request Page 3 Results:
  
  Entries: A, B, C, D, E, F, G, H, I
  </code></pre>
  
Tags: <craft3><plugin-elementapi><elementquery>
Title: Element API: How to get entries up to a certain page?
ThreadText: # Element API: How to get entries up to a certain page?
  
  (Asked by: username_0 on 2019-08-20)
  
  I have a query that is pulling entries from a structure with
  `elementsPerPage' => 3`
  
  If my pagination looks like this:
  
  ```
  Page 1:
  Entries: A, B, C
  
  Page 2:
  Entries: D, E, F
  
  Page 3:
  Entries: G, H, I
  
  ```
  
  How should I write the query to get all entries up to page 2?
  
  ```
  Request Page 2 Results:
  
  Entries: A, B, C, D, E, F
  
  Request Page 3 Results:
  
  Entries: A, B, C, D, E, F, G, H, I
  
  ```
  
  **Tags:** craft3, plugin-elementapi, elementquery
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-08-20. Score: 1 | Accepted answer
  
  This tweet shows a way to adjust the elements per page dynamically with a query string param -> <https://twitter.com/JakeDohm/status/1157305040278839296?s=20> so you could just request 6 or 9 items to get the same result.
  
  
  ---
  
  