Title of the current parent structure I want to display the current title of the parent structure inside the child template.

How would I do that?


Parent (Title: Bla)

Child (Here I want to display Bla)

Parent (Title: Blablu)

Child (Here I want to display Blablu)



I tried something like (in the child template):

{% set parentTitle = craft.entries.section('structure').level(1).title %}
&lt;h1&gt;{{ parentTitle }}&lt;/h1&gt;


But that doesn't even result in an error
If you are trying to get the top most parent entry of a child entry in a structure, you can use ancestorOf.

{% set parent = craft.entries.ancestorOf(entry).level(1).first() %}
&lt;h1&gt;{{parent.title}}&lt;/h1