Duplicate page with childrens from frontend

Hello there,

is it possible to clone /duplicate a page with all its children from the frontend?
I tried $page->duplicate() but this did not works with the children.

Thanks in advance

Have you provided the options array? See the docs for that method and then follow the link to the source code

['children' => true]

Thanks a lot… works like a charm