I have a container for example: students.{title, description, children=student} and student={title, ...}
# students.ini
[model]
name = Students
[fields.title]
label = Title
type = string
[fields.description]
label = Description
type = markdown
[children]
model = student
# student.ini
[model]
name = Student
[fields.title]
label = Title
type = string
I would like to get the title/description of the studentS container.
{% set root = site.get('/students') %}
{{ root.description }}
But with get or query, I get the list and not the container...
Any idea?
Thank you
Sure, you have to access the
recordattribute first:... and you can always access the
.parentattribute of a child.