Answers.Body: <p>You need to set a <code>limit</code> on your element query, so Craft knows how many entries you want per page:</p>
  
  <pre><code>{% paginate craft.entries.section('newsBlog').limit(1) as pageInfo, pageEntries %}
  </code></pre>
  
  <p>If you <em>don't</em> set a limit, <code>{% paginate %}</code> will return a single page with <em>all</em> entries, because the default value for <code>limit</code> in Craft 3 is <code>null</code> (in Craft 2, the default was <code>100</code>).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-02T09:11:22.990Z
Answers.Text: thx for answer!!
Answers.UserDisplayName: thomas
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-02T08:56:33.993Z
Answers.LastActivityDate: 2018-08-02T08:56:33.993Z
Answers.UserDisplayName: Mats Mikkel Rummelhoff
Body: <p>I have problem with the <code>{% paginate%}</code> tag.</p>
  
  <p>Setting:</p>
  
  <ul>
  <li>Craft CMS 3.0.18</li>
  <li>Channel with 3 Entries -> handle "newsBlog"</li>
  </ul>
  
  <p><code>{% paginate craft.entries.section('newsBlog') as pageInfo, pageEntries %}</code></p>
  
  <p>When i open the second Entry in the News-Channel i get following values</p>
  
  <ul>
  <li><code>pageInfo.total</code>: 3</li>
  <li><code>pageInfo.currentPage</code>: 1 -> Why?</li>
  <li><code>pageInfo.nextUrl</code>: empty -> Why?</li>
  <li><code>pageInfo.prevUrl</code>: empty -> Why?</li>
  </ul>
  
  <p>I did a lot of Craft 2 projects without pagination problems.</p>
  
  <p>What did I do wrong? Thx for help!</p>
  
Tags: <craft3><pagination>
Title: {% paginate %} Tag issue, no prevUrl / nextUrl Data
ThreadText: # {% paginate %} Tag issue, no prevUrl / nextUrl Data
  
  (Asked by: username_0 on 2018-08-02)
  
  I have problem with the `{% paginate%}` tag.
  
  Setting:
  
  * Craft CMS 3.0.18
  * Channel with 3 Entries -> handle "newsBlog"
  
  `{% paginate craft.entries.section('newsBlog') as pageInfo, pageEntries %}`
  
  When i open the second Entry in the News-Channel i get following values
  
  * `pageInfo.total`: 3
  * `pageInfo.currentPage`: 1 -> Why?
  * `pageInfo.nextUrl`: empty -> Why?
  * `pageInfo.prevUrl`: empty -> Why?
  
  I did a lot of Craft 2 projects without pagination problems.
  
  What did I do wrong? Thx for help!
  
  **Tags:** craft3, pagination
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-08-02. Score: 5
  
  You need to set a `limit` on your element query, so Craft knows how many entries you want per page:
  
  ```
  {% paginate craft.entries.section('newsBlog').limit(1) as pageInfo, pageEntries %}
  
  ```
  
  If you *don't* set a limit, `{% paginate %}` will return a single page with *all* entries, because the default value for `limit` in Craft 3 is `null` (in Craft 2, the default was `100`).
  
  > **Comments:**
  > **username_0**: thx for answer!!  
  
  ---
  
  