Results 1 to 6 of 6

Thread: Change number of displayed results in the global search

  1. #1
    bizna is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    18

    Question [SOLVED] Change number of displayed results in the global search

    When you get the list of results in the global search, then for each module you get 10 results.

    Is there an option to change that?

    I tried several options, and changed settings in the config.php file - but none of them do that. I even did a quick repair, just in case some 'stale' definition is lurking.

    Still - no love.

    Any idea?

    Thanks!
    Last edited by bizna; 2011-02-01 at 07:16 AM. Reason: matter is solved.

  2. #2
    bizna is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    18

    Default Re: Change number of displayed results in the global search

    bumping the message for a possible reply...

  3. #3
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Change number of displayed results in the global search

    This depends on your settings for list view:
    "Listview items per page" in Admin->System Settings->User Interface

    (my installation: 6.0.1 CE)
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  4. #4
    bizna is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    18

    Default Re: Change number of displayed results in the global search

    Thank you Stefan, but...

    My listview value is 40, and I still see only 10. It has effect only on the display in the modules themselves, and not on the results of a general search in the CRM.

    I thought that it might be a matter of files permissions on the server, but I ruled it out since it's an upgrade.

    Any clue?

    Quote Originally Posted by sts View Post
    This depends on your settings for list view:
    "Listview items per page" in Admin->System Settings->User Interface

  5. #5
    sts's Avatar
    sts
    sts is offline Sugar Community Member
    Join Date
    Aug 2010
    Posts
    978

    Default Re: Change number of displayed results in the global search

    Sorry, I got you wrong ... My solution was for module search only.

    For global search you'll have to change the implementation. In modules/Home/UnifiedSearchAdvanced.php, function search(), you'll find a line that looks like this:
    $lv->setup($seed, 'include/ListView/ListViewGeneric.tpl', $where, $params, 0, 10);
    (in 6.0.1 CE it's line 217)
    If you change the last parameter you should get what you want ...
    Stefan Ulrich Sauer
    System Analyst

    Devoteam Danet GmbH
    Gutenbergstraße 10
    D-64331 Weiterstadt
    Germany
    email: Stefan-Ulrich.Sauer@devoteam.com
    http://www.devoteam.de

  6. #6
    bizna is offline Sugar Community Member
    Join Date
    Jul 2007
    Posts
    18

    Thumbs up Re: Change number of displayed results in the global search

    Stefan,

    You're a savior!

    In 6.1 it's in line 227, and it worked like a charm!

    Thanks a lot!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 2011-11-30, 10:11 PM
  2. Replies: 0
    Last Post: 2010-09-13, 06:21 PM
  3. Add class to displayed phone number
    By mweichert in forum Developer Help
    Replies: 2
    Last Post: 2010-07-27, 01:15 PM
  4. Change the search results to show postcode?
    By lowbug in forum Developer Help
    Replies: 0
    Last Post: 2010-05-26, 04:49 PM
  5. Search Results Not Displayed
    By richard.brookes in forum Help
    Replies: 2
    Last Post: 2007-05-28, 05:37 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •