What I'm trying to do is to display child pages of a parent page. So far so good.
{% if entry.parent %}
<div class="widget clearfix">
<h4 class="widgettitle"><a href="{{ entry.parent.url }}">{{ entry.parent.title }}</a></h4>
<ul class="clearfix">
{% set topic = entry.parent.id %}
{% for subsection in craft.entries.descendantOf(topic) if subsection.type != "state" %}
<li class="cat-item"><a href="{{ subsection.url }}">{{ subsection.title }}</a></li>
{% endfor %}
</ul>
</div>
{% endif %}
However if the sub page has another child page everything goes wrong as I see the results of the parent page that is a child itself.
How do I ignore the hierarchy and display the results of level 1 aka grand parent page / topic?
Thanks.