How to add more information/custom fields to Global Search Results ?

Hello Team,

Please see below screen shot, I want to add more std/custom fields to global search results.

GlobalSearch.png

Version : 7.7 Ent

Thanks,

Shyam

Parents
  • Hi Shyam Gaikwad

    Hope I am understanding your question correctly:

    In Studio, choose the module from which you want to add fields from to the global search. Navigate to Search -> Search and then drag the fields over to the "Default" half:

    Save & Deploy.

    You might also have to do "Schedule System Index" which is under Admin -> Search.

    Good luck,

    KGM

  • Hello Shyam Gaikwad,

    I have done this customization for my one of the existing client.

    I have share my code with you.I have done this for opportunities module. I have remove date_closed into global search.

    Put this file into /<>/custom/modules/Opportunities/clients/base/views/search-list/search-list.php

    $viewdefs['Opportunities']['base']['view']['search-list'] = array(
        'panels' => array(
            array(
                'name' => 'primary',
                'fields' => array(
                    array(
                        'name' => 'picture',
                        'type' => 'avatar',
                        'size' => 'medium',
                        'readonly' => true,
                        'css_class' => 'pull-left',
                    ),
                    array(
                        'name' => 'name',
                        'type' => 'name',
                        'link' => true,
                        'label' => 'LBL_SUBJECT',
                    ),
                ),
            ),
            /*array(
                'name' => 'secondary',
                'fields' => array(
                    array(
                        'name' => 'date_closed',
                        'type' => 'date',
                        'label' => 'LBL_DATE_CLOSED'
                    )
                ),
            ),*/
        ),
    );
    

    You need to add your field in to array.

    Do Repair & Rebuilds.

    Hope it will help you. If you need more help let me know.

    -BPATEL

Reply
  • Hello Shyam Gaikwad,

    I have done this customization for my one of the existing client.

    I have share my code with you.I have done this for opportunities module. I have remove date_closed into global search.

    Put this file into /<>/custom/modules/Opportunities/clients/base/views/search-list/search-list.php

    $viewdefs['Opportunities']['base']['view']['search-list'] = array(
        'panels' => array(
            array(
                'name' => 'primary',
                'fields' => array(
                    array(
                        'name' => 'picture',
                        'type' => 'avatar',
                        'size' => 'medium',
                        'readonly' => true,
                        'css_class' => 'pull-left',
                    ),
                    array(
                        'name' => 'name',
                        'type' => 'name',
                        'link' => true,
                        'label' => 'LBL_SUBJECT',
                    ),
                ),
            ),
            /*array(
                'name' => 'secondary',
                'fields' => array(
                    array(
                        'name' => 'date_closed',
                        'type' => 'date',
                        'label' => 'LBL_DATE_CLOSED'
                    )
                ),
            ),*/
        ),
    );
    

    You need to add your field in to array.

    Do Repair & Rebuilds.

    Hope it will help you. If you need more help let me know.

    -BPATEL

Children