guave/contao-search-console

add a search for any module and some special shortcuts to the admin

1.0.3 2017-12-22 13:11 UTC

This package is auto-updated.

Last update: 2024-05-08 20:31:14 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