Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It would be nice if you have 'Search settings' available on a per site basis.
On my default site we would like to see all the results of all the sites
On the subsites we would like to only see results for that specific subsite.
It would be even nicer if we could select per site which sites it should show the results.
For example.
default site = everything
site1 = site 1 results
site 2 = site 2 + site 3 results
site 3 = site 3 + site 2 results
If it is already possible in some kind of way please let me know.
Comments
Comment #1
agentrickardThat would need to be a small independent module. It should be fairly simple to achieve. In D7 you can use hook_node_grants_alter() to change the grants array. In this case, you would do it IFF the path indicates a search.
Something like:
The fun part would be a module that creates a UI for setting these rules. Sounds like a good project for someone to take on.