Hello,
I have a blueprint with a field like this:
artists:
type: pages
query: site.find('artists').children
translate: false
When I try to update one of these pages, with a code like this:
$p = $kirby->page('news/' . 'historia-de-les-mans');
$p->update([
'artists' => Data::encode(['pollito', 'pachulo'], 'yaml')
]);
…the field turns empty.
Interestingly, if I manually update the field through the panel, save, then run the code above, the field is emptied again (both in the panel and the .txt )
What silly thing may I be doing wrong?
Thanks