How do you pull out second level structure entries based on their parent? I have a structure as follows:


Parent 1


Child 1
Child 2
Child 3

Parent 2


Child 1
Child 2
Child 3

Parent 3


Child 1
Child 2
Child 3
etc...



On my Child entry pages I want to pull out the other child entries under that parent to use as navigation. I think this should be fairly straight forward but I can not find any documentation on it. So far I have the below but this pulls out all level 2 child entries and not just the entries for the specified parent.

Any help much appreciated.

{% for subnav in craft.entries.section('mySection').level(2).find() %}
    &lt;li&gt;&lt;a href="{{ subnav.url }}"&gt;{{ subnav.title }}&lt;/a&gt;&lt;/li&gt;
{% endfor %}
Ok I've worked this out from above and adding some other code and now it works as below:

{% set parent = entry.getAncestors().first() %}
{% for subnav in craft.entries.section('mySection').descendantOf(parent).descendantDist('1') %}
    &lt;li&gt;&lt;a href="{{ subnav.url }}"&gt;{{ subnav.title }}&lt;/a&gt;&lt;/li&gt;
{% endfor %}


Hope this assists someone else.