From 4c28d9c34f5f3e5ccbbed6dbb0ba08bc5235b53b Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Thu, 10 May 2012 12:24:12 -0400 Subject: [PATCH] - Added global search (FS#2210, FS#2146). --- interface/web/sites/form/web_domain.tform.php | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/interface/web/sites/form/web_domain.tform.php b/interface/web/sites/form/web_domain.tform.php index ce835a9..d97d78b 100644 --- a/interface/web/sites/form/web_domain.tform.php +++ b/interface/web/sites/form/web_domain.tform.php @@ -29,6 +29,11 @@ Hint: The ID field of the database table is not part of the datafield definition. The ID field must be always auto incement (int or bigint). + + Search: + - searchable = 1 or searchable = 2 include the field in the search + - searchable = 1: this field will be the title of the search result + - searchable = 2: this field will be included in the description of the search result */ @@ -87,7 +92,8 @@ 'keyfield'=> 'ip_address', 'valuefield'=> 'ip_address' ),*/ - 'value' => '' + 'value' => '', + 'searchable' => 2 ), 'ipv6_address' => array ( 'datatype' => 'VARCHAR', @@ -98,7 +104,8 @@ 'keyfield'=> 'ip_address', 'valuefield'=> 'ip_address' ),*/ - 'value' => '' + 'value' => '', + 'searchable' => 2 ), 'domain' => array ( 'datatype' => 'VARCHAR', @@ -114,7 +121,8 @@ 'default' => '', 'value' => '', 'width' => '30', - 'maxlength' => '255' + 'maxlength' => '255', + 'searchable' => 1 ), 'type' => array ( 'datatype' => 'VARCHAR', @@ -208,7 +216,8 @@ 'formtype' => 'SELECT', 'default' => 'fast-cgi', 'valuelimit' => 'client:web_php_options', - 'value' => array('no' => 'disabled_txt', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM') + 'value' => array('no' => 'disabled_txt', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM'), + 'searchable' => 2 ), 'fastcgi_php_version' => array ( 'datatype' => 'VARCHAR', -- Gitblit v1.9.1