Automatically adding folders in the cms

i want to let my CMS automatically add new folders with a specific template and subfolders to my cms. Let’s say on every 1. of the month or every night at 23:00. Is that possible? When yes, how? What is a good approach? Thanks :slight_smile:

I assume you mean you want to create pages and subpages?

Yes, you can do that, with a script that is triggered from a cron job at the desired interval.

hm, okay but where would i put the script?

Either you create a stand-alone script that you can put anywhere, or you put your logic into a route that you call from your cron job.

If you use a stand-alone script, you need to include kirby, see for example