Move Page on certain condition

Hey, i want to Move subpages to another parent if they become older than x days. Im open to using @bnomei janitor Plugin, but maybe this could be automatized?

Thx ppl!

You could use a cron job that calls a script that runs through all relevant pages , checks their date and moves them to another parent if condition is true.

you can trigger janitor jobs using a crob job.

Thought about that, Janitor it is then!

1 Like

And how am I movin them? I found $page->move(), but this seems not in the docs anymore…

Can’t find a method at the moment, maybe just use low level Dir::move():