Multi-Site: Add Hosts as Subfolders from Panel

Hi there,

I want to know if it is possible to add new Host/Subfolders to my kirby multi-site from the panel of a specific “main-site”. In other words, is it possible to change the $sites array (referring to Cookbook Multi-Site Usage) (extend and delete) within the index.php from the panel, so one can add and remove sites dynamically?

Thanks for the help.

Maybe add a new Panel area where you can use custom actions. Store the sites in a json file which you can then read from in index.php.

Thank you very much.

I just was unsure wether it is possible to get the data from a database-table or a json in the index.php to fill the $sites array.