Answers.Body: <p>There is no inherent order or hierarchy between entries in a Channel section.  You could do some janky things to simulate it, but you're probably much better off converting that <code>workArticles</code> section to a <a href="https://craftcms.com/docs/sections-and-entries#section-types" rel="nofollow noreferrer">Structured section</a>, which does give its entries both order and hierarchy.</p>
  
  <p>In your case, you might not care about the hierarchy, so you can just keep everything on the first level.</p>
  
  <p>Very similar to <a href="https://craftcms.com/support/structure-nav#top-level-only" rel="nofollow noreferrer">https://craftcms.com/support/structure-nav#top-level-only</a></p>
  
  <p>Then, if you need to, you can take advantage of all of the structure specific properties of <a href="https://craftcms.com/docs/templating/entrymodel" rel="nofollow noreferrer">EntryModel</a>, (level, parent, nextSibling, etc.)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-30T10:55:20.973Z
Answers.Text: A structure does what I need. Thank you. I figured that it returns disabled items as well. So I tried `{% set nextSibling = craft.entries.positionedAfter(entry).order('lft asc').first() %}` but nextSibling is `null`. Any idea on how to get the next enabled sibling?
Answers.UserDisplayName: Sven
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-30T11:39:51.170Z
Answers.Text: I figured it out! The next sibling was null because it was the last one in the structure. So in that case I am using the first sibling instead: `{% set nextSibling = entry.siblings.first() %}`.
Answers.UserDisplayName: Sven
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-29T18:36:27.823Z
Answers.LastActivityDate: 2016-12-29T18:36:27.823Z
Answers.UserDisplayName: Brad Bell
Body: <p>I am having the following sections:</p>
  
  <pre><code>1. work (section type: single)
    fields: 
      - workList (type: entries from section type workArticles)
  
  2. workArticles (section type: channel)
    fields: 
      - workName (type: plain text)
  </code></pre>
  
  <p>So the first section (<code>work</code>) is an overview page that links to pages of the second section (<code>workArticles</code>). Basically a normal portfolio page.</p>
  
  <p>On my workArticles pages I want to link to the next entry from <code>work.workList</code>. So imagine: my portfolio overview page shows 8 projects, the user clicks on the third entry, the page for the third entry opens, on the bottom of that page I want to link to the fourth entry of the list.</p>
  
  <p>Is that even possible?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-28T18:39:55.163Z
Comments.Text: Is there an actual Matrix field involved here (from your question title)? https://craftcms.com/docs/matrix-fields
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-12-29T09:57:51.630Z
Comments.Text: @BradBell There is no matrix field involved. Sorry, I got confused. Will edit the title.
Comments.UserDisplayName: Sven
Tags: <entries><sections>
Title: Get next entry from an entries field
ThreadText: # Get next entry from an entries field
  
  (Asked by: username_0 on 2016-12-28)
  
  I am having the following sections:
  
  ```
  1. work (section type: single)
    fields: 
      - workList (type: entries from section type workArticles)
  
  2. workArticles (section type: channel)
    fields: 
      - workName (type: plain text)
  
  ```
  
  So the first section (`work`) is an overview page that links to pages of the second section (`workArticles`). Basically a normal portfolio page.
  
  On my workArticles pages I want to link to the next entry from `work.workList`. So imagine: my portfolio overview page shows 8 projects, the user clicks on the third entry, the page for the third entry opens, on the bottom of that page I want to link to the fourth entry of the list.
  
  Is that even possible?
  
  **Tags:** entries, sections
  
  > **Comments:**
  > **username_1**: Is there an actual Matrix field involved here (from your question title)? https://craftcms.com/docs/matrix-fields  
  > **username_0**: @username_1 There is no matrix field involved. Sorry, I got confused. Will edit the title.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-12-29. Score: 1 | Accepted answer
  
  There is no inherent order or hierarchy between entries in a Channel section. You could do some janky things to simulate it, but you're probably much better off converting that `workArticles` section to a [Structured section](https://craftcms.com/docs/sections-and-entries#section-types), which does give its entries both order and hierarchy.
  
  In your case, you might not care about the hierarchy, so you can just keep everything on the first level.
  
  Very similar to <https://craftcms.com/support/structure-nav#top-level-only>
  
  Then, if you need to, you can take advantage of all of the structure specific properties of [EntryModel](https://craftcms.com/docs/templating/entrymodel), (level, parent, nextSibling, etc.)
  
  > **Comments:**
  > **username_0**: A structure does what I need. Thank you. I figured that it returns disabled items as well. So I tried `{% set nextSibling = craft.entries.positionedAfter(entry).order('lft asc').first() %}` but nextSibling is `null`. Any idea on how to get the next enabled sibling?  
  > **username_0**: I figured it out! The next sibling was null because it was the last one in the structure. So in that case I am using the first sibling instead: `{% set nextSibling = entry.siblings.first() %}`.  
  
  ---
  
  