arter / amos-search
There is no license information available for the latest version (1.1.0) of this package.
Amos Search
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
1.1.0
2024-05-07 10:05 UTC
Requires
- php: >=5.4.0
- arter/amos-core: >=1.9.57
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-19 14:31:44 UTC
README
Plugin to allow global search on several models. Global search can be extended, possibly, to any module. To enable global search for a model:
- make the model search class implement the arter\amos\core\interfaces\SearchModelInterface;
- make the model implement the ModelLabelsInterface
Installation
The preferred way to install this extension is through composer.
Either run
composer require arter/amos-searchor add
"arter/amos-search": "~1.0"to the require section of your
composer.jsonfile.Add module to your modules-amos config in backend:
<?php $config = [ 'modules' => [ 'search' => [ 'class' => 'arter\amos\search\AmosSearch' ], ], ];Enable the search bar add to backend/params-local
search navbar menu
'searchNavbar' => true
Module configurations
- enableNetworkScope - boolean, default = false
If true, when the scope is within a network (eg. in a community) only the network contents results are shown