I’m setting up a website for a organisation that organize events in 3 different city. So every city should have it’s own website. 3 times a identical website from a template, css etc. perspective. Only the content will be different.
So I’m thinking to setup 1 site and then copy it for the other cities. Not ideal from a maintenance perspective. Is it possible to manage everything with the same templates and panel? So there is just 1 point of maintenance.
multisite setup only works if all domains point towards the same destination.
since kirby is really not depending on anything outside it’s base folder, you might just go for a general purpose template / setup, where you can swap out the contents after you duplicated the whole website folder…
a great idea is to use composer, so if there’s an update for anything like kirby, or other plugins you can just update with one command and publish the changes.
the multi setup as mentioned before handles access differently
all sites are found in the same installation folder so all DOMAINS will have to point to the same directory.
the magic then happens with the kirby configuration.
kirby will check which domain is being accessed to and call the appropriate content for that
the $domains array inside the site.php is the key factor there.
you specify which domains are pointed towards kirby there… (where your index.php and all files/content is being uploaded to)
$domains = array('site1.com', 'site2.com');
// Just put all your domains you want to use there.
check out the multi-site setup which is linked above…
make sure for each domain you have all folders setup correctly such as
EDIT:
for generally having only one template/blueprint/etcpp/
you can make kirby functions available from the outside, and change things like site folder, but i haven’t tried any of that…
Thanks @carstengrimm that’s very helpfull. The multisite documentation didn’t mention anything about the folder structure. This is definitely the way to go.
It is working partly, yeah!
Some roadblocks:
As homepage it renders the “site.txt.” information, do you know why this is rendered instead of the “home” folder?
The following line is giving the error: “Call to a member function children() on boolean”