Skip to content

Separate control panel search and site search #240

@jmartsch

Description

@jmartsch

Right now the control panel and the site return the same results. But this is not what I want.
For example in the cp I want to search for images which is not the case on my frontend.
On the frontent I want to search only in specified collections. In the cp I want to search all content, as I am an editor.

Is this already possible and did I just not have seen it?
I am thinking of something like this in config/statamic/search.php

'indexes' => [

        'default' => [
            'driver' => 'local',
            'searchables' => ['collection:articles', 'collection:blog', 'collection:pages','collection:referenzen', 'collection:leistungen'],
            'fields' => ['title','subheadline','navigation_title'],
        ],
'controlpanel' => [
            'driver' => 'local',
            'searchables' => 'all',
            'fields' => ['title','subheadline','navigation_title'],
        ],
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions