I want to setup a multisite installation of three blogs a, b and c, each serving it’s own domain:
- Blog a gathers and provides all blog postings in a content/blog subdirectory.
- Blog b and c select the postings dedicated to them and display them on their own domain.
Thus blog b and c do not store their own blogposts, they only display the postings from blog A, which are assigned to them via tagging. This means that with regard to blog postings blog b and c only provide a strict subset of the blog posting stored in blog a’s content/blog folder.
- I first used the convenient custom folder setup to setup a multisite installation, so that I could differentiate the three domains beneath one root directory.
- Then I wanted to add templates to blog B and C which select the appropriate tagged content from the content directory of Blog A.
Here I got stuck and ask for helpful ideas:
When I setup a custom folder for Blog B or C using this command
$kirby->roots->content = $kirby->roots()->index() . DS . 'blog_b';
along with this filtering command sitting in a template in blog B or C
$filtered = $page->children()->filterBy('tags', 'blog_b', ',');
the filtering command naturally has only access to it’s own content scope defined by the custom folder assignment and cannot reach out to blog A’s content.
My question is: How I can access a specific content subfolder of a different site in a multisite installation, though I have in general intentionally separated content folders?
One work around would obviously be to provide a link to the specific content folder from blog b and c to the folder in Blog A on the filesystem level. If possible I would prefer a elegant Kirby-style solution to handle this issue :-).
Please apologize in case I have overseen an evident solution!
Many thanks for your support in advance,