Answers.Body: <p>As already mentioned in the comments, <code>getSiblings</code> should do exactly what you need.</p>
  
  <pre><code>{% for sibling in entry.getSiblings() %}
      {{ sibling.title }}
  {% endfor %}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-31T17:49:59.773Z
Answers.Text: Works exactly as I wanted, thanks a lot for helping guys!
Answers.UserDisplayName: osh
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-30T22:28:16.047Z
Answers.LastActivityDate: 2015-08-30T22:28:16.047Z
Answers.UserDisplayName: carlcs
Body: <p>I've been reading a lot of documentation (getSiblings, getDescendants etc) but can't get this to work:</p>
  
  <p>I have a structure, named 'areas'. When showing an entry that is a child of an area in 'areas', I would like to list its siblings (that is in the same place in the hierarchy). </p>
  
  <p>So for example on the url <a href="http://localhost/areas/some-area/very-nice-area-number-1" rel="nofollow">http://localhost/areas/some-area/very-nice-area-number-1</a>, I would like to list very-nice-area-number-2, very-nice-area-number-3, very-nice-area-number-4 and so on (but not the current one (very-nice-area-number-1), of course).</p>
  
  <p>To explain further, using the getNext function is the closest I've come, except that it only gives me one entry, and I want all other entries that holds the same place in the hierarchy under 'some-area'. </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-08-30T18:07:41.490Z
Comments.Text: Based on how you describe your problem, it sounds like getSiblings() does exactly what you want. In what way doesn't getSiblings() work for you?
Comments.UserDisplayName: André Elvan
Tags: <relations>
Title: List related siblings
ThreadText: # List related siblings
  
  (Asked by: username_0 on 2015-08-30)
  
  I've been reading a lot of documentation (getSiblings, getDescendants etc) but can't get this to work:
  
  I have a structure, named 'areas'. When showing an entry that is a child of an area in 'areas', I would like to list its siblings (that is in the same place in the hierarchy).
  
  So for example on the url <http://localhost/areas/some-area/very-nice-area-number-1>, I would like to list very-nice-area-number-2, very-nice-area-number-3, very-nice-area-number-4 and so on (but not the current one (very-nice-area-number-1), of course).
  
  To explain further, using the getNext function is the closest I've come, except that it only gives me one entry, and I want all other entries that holds the same place in the hierarchy under 'some-area'.
  
  **Tags:** relations
  
  > **Comments:**
  > **username_1**: Based on how you describe your problem, it sounds like getSiblings() does exactly what you want. In what way doesn't getSiblings() work for you?  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-08-30. Score: 4
  
  As already mentioned in the comments, `getSiblings` should do exactly what you need.
  
  ```
  {% for sibling in entry.getSiblings() %}
      {{ sibling.title }}
  {% endfor %}
  
  ```
  
  > **Comments:**
  > **username_0**: Works exactly as I wanted, thanks a lot for helping guys!  
  
  ---
  
  