Multi-site handling #196
Replies: 4 comments
-
That's a nice way to handle multiple sites, I'll leave it open here for now as I don't want to overcrowd the README too much, if we have more of these I could split them to a different markdown file |
Beta Was this translation helpful? Give feedback.
-
FWIW - you can query |
Beta Was this translation helpful? Give feedback.
-
@ArtDepartmentMJ Hi! I am using the same solution for indexing our multi-site setup, however when I try to enter scout settings from the CP I get this error |
Beta Was this translation helpful? Give feedback.
-
@ArtDepartmentMJ I ended up placing the function before the return array (top of the file) and checking if the function exists before declaring it - not sure if that is a proper solution. <?php
if (!function_exists('siteIndices')) {
function siteIndices()
{ |
Beta Was this translation helpful? Give feedback.
-
Great work on v2 @riasvdv
I've been playing around with muti-sites and even though you refer to them in your code comments, I'm wondering of it might be an idea to include an example in the readme!?
Here's my solution that means you don't have to create a specific index each time a new site is added:
config/scout.php
Beta Was this translation helpful? Give feedback.
All reactions