Ideas for a Kirby setup with one CMS but two domains?

Hey there

I have a question and I’m sure some of you have already solved a similar issue:

I want to create two portfolio websites. A public one with public projects and one on another domain that is password protected with “private” projects. However, the basic structure, styling, and some of the content of the page are the same.

I have currently created this setup by duplicating a Kirby page (https://michaelschoenenberger.ch/ and https://dev.michaelschoenenberger.ch/). But now I obviously often have to make adaptions twice, on both systems.

Since a lot of the code and content are the same, it would make more sense to have one backend and i.e. some sort of checkbox if the project is public or not. Depending on that, the respective domain should then show the project or not.

How would you solve that? I tried to find some references or templates but wasn’t successful so far.

Thanks for your help!

Take a look at these two recipes:

You can also use a front end login on a single site to protect the private pages. So that would be one site rather then two, and you give clients (or whoever) the credentials to access the page(s).