I would like to include into a running kirby installation some test versions, so the structure looks like this:
root
assets
contents
dev
kirby-test-01
kirby
in the kirby-test-01 i would like to delete the content folder and point to the main content folder in the root (running) version.
i am not really familiar how to write that, but this doesn’t work:
// changing the directory
$kirby->roots->content = $kirby->roots()->index() . DS . ‘…/…/content’;
// changing the url
$kirby->urls->content = $kirby->urls()->index() . ‘…/…/content’;
the first page appears, but no links work and images won’t be loaded as well…
Hm, for me it seems to work with a relative path even two folders up, at least on localhost. It doesn’t create any absolute URLs though, but for development purposes it should suffice, I guess?
hey texnixe, can i write you an email? i would like to disclose some folder structure to you and think in general it could be a good thing to offer a setup with a root install and a test folder that offers versions in design and templates, but leaves the content untouched.
with the (my) current site.php that seems not to work and since i needed this previously already, i would like to solve this once and for all…