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
)
- Child (Here I want to display
Parent (Title: Blablu)
- Child (Here I want to display
Blablu
)
- Child (Here I want to display
I tried something like (in the child template):
{% set parentTitle = craft.entries.section('structure').level(1).title %}
<h1>{{ parentTitle }}</h1>
But that doesn't even result in an error