lispa / amos-search
Amos Search
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:component
Requires
- php: >=5.4.0
- open20/amos-core: >=1.9.57
This package is auto-updated.
Last update: 2024-10-23 15:11:40 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 open20\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 open20/amos-search
or add
"open20/amos-search": "~1.0"
to the require section of your
composer.json
file. -
Add module to your modules-amos config in backend:
<?php $config = [ 'modules' => [ 'search' => [ 'class' => 'open20\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