I tried this code in /site/blueprints/users/admin.yml
title: Admin page
sections:
pages:
type: pages
headline: Subpages
But I get an error message:
The section "pages" could not be loaded: Undefined property: Kirby\Cms\Field::$data
I tried this code in /site/blueprints/users/admin.yml
title: Admin page
sections:
pages:
type: pages
headline: Subpages
But I get an error message:
The section "pages" could not be loaded: Undefined property: Kirby\Cms\Field::$data
You have to set a parent, the user can’t have subpages.
Title: Admin
sections:
pages:
parent: site.find('notes')
type: pages
headline: Subpages
In your example, “notes” is a template name or the parent page id?
Update: It works with a page id
Yes, notes it the id of a first level page.