guave / contao-search-console
add a search for any module and some special shortcuts to the admin
Installs: 28
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:contao-module
Requires
- php: >=5.6.0
- contao-community-alliance/composer-plugin: ~2.4 || ~3.0
- contao/core-bundle: ~3.2 || ~4.1
This package is auto-updated.
Last update: 2025-03-08 22:18:40 UTC
README
a little search_console module for contao admin
dependencies
https://github.com/terminal42/contao-NamespaceClassLoader
config
<?php //system/mymodule/config/config.php $GLOBALS['search_console']['modules']['SOME_UNIQUE_NAME'] = array();
key | type | mandatory | description |
---|---|---|---|
module | string | M | the contao module name |
shortcut | string | O | shortcut for new and go to |
enableNew | boolean | O | enables the new shortcut link (n ...) |
enableGoTo | boolean | O | enables the new shortcut link (g ...) |
defaultSearchFields | array | O | if no search field is specified, it does a like search on this fields |
doNotSearch | boolean | O | will not be used for search query only for shortcuts |
customSearch | array | O | class,method will be called for buildCustomQuery see customquery |
customquery
must return an query with this fields
field | description |
---|---|
id | the main id of the row |
pid | the parentId if there is none return "" |
ptable | the parent table if there is none return "" |
name | will be the name which is in the result displayed |
module | to which contao module belongs the row |
label | the name of the Module |
tableName | from which table comes the row |