I’m wondering if there is a way to change the parent of a current page with a given method. I saw in the doc the possibility to copy the page to a new parent via
$page->copy(). But ideally the method would directly move the page to a given parent.
The reason I want to be able to do that via the Panel (likely with Janitor Plugin) is that I have a Directory with a list of Students that are separated via subpages, like that:
— Student A
— Student B
— Student C
— Student D
— Student E
— Student F
— Student G
— Student H
— Student I
There is some case where student changes year, so that’s why I would like to be able to change the parent directly. Also each student has an AutoID attributed for relationship purpose – which show in the frontend projects they participated in, so I can’t really delete and create it again because I might lose the relationship with the projects.
I hope that make sense what I’m trying to achieve. There are about 8 years and more to come in the future, so that’s why I decided to split it by year.