How can I get the top level ancestor of an entry within a structure? I've tried:
{% set rootEntry = null %}
{% for ancestor in entry.getAncestors() %}
{% set rootEntry = ancestor %}
{% endfor %}
But that only returns the most recent ancestor back and doesn't go all the way up the chain.