I need to update the children of a page in a loop, but this ends in an error.
“Nesting level too deep - recursive dependency?”
on the line 928: array_multisort(…$params); in the file kirby/src/Toolkit/Collection.php
<?php
$contentpage=page("our-catalogue/antique-maps");
foreach($contentpage->children()->listed() as $pg){
$pg->update([
'webprice' => "newprice"
]);
}
?>
// yml of the parent page
sections:
pages:
type: pages
layout: list
templates:
- category-item