Display the content of a parent page field in a child page?

May I display the content of a parent page textarea field in a info field in a child page with the query language?

info: "{{ page.parent.field_name }}"

Or with another way?

That should actually be possible, but the attribute of an info field is called text:

      info:
        label: Info
        type: info
        text: "{{ page.parent.field_name }}"

(For some reason, I can’t get an info field to work in K3 at all, no idea why)

My bad, in the documentation, the “Query language” page gives some examples where the query is directly set to info: "{{ file.dimensions }}" so like a little monkey :monkey_face:, I’ve reproduced this logic in my field, sorry.

Tested in a plainkit installation and now it works for me.

default plainkit blueprints (default.yml):

title: Default Page
preset: page
fields:
  text:
    label: Text
    type: textarea
    size: large
  info:
    label: Info
    type: info
    text: "{{ page.parent.text }}"

and if you have sub-sub-pages …

title: Default Page
preset: page
fields:
  text:
    label: Text
    type: textarea
    size: large
  info:
    label: Info
    type: info
    text: "{{ page.parent.parent.text }}"

works as well :slight_smile:

Thx Sonja