Results 1 to 6 of 6

Thread: change the number of columns in advanced Search

  1. #1
    jad1983 is offline Sugar Community Member
    Join Date
    Jul 2011
    Location
    Zürich, Switzerland
    Posts
    23

    Default change the number of columns in advanced Search

    Hi there,

    There must be an easy way to change the overall width of the advanced search page? I think I'd prefer having just two columns with search fields. I find the 3-column standard layout a bit bloated and hard to navigate.

    How can this be done? i couldn't find anything in the admin section nor config.php. So some little custom directory tweak perhaps? (I'm a newbie, as you may notice).

    thanks for your help.
    John

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

    Default Re: change the number of columns in advanced Search

    You could have a look into modules/<modulename>/metadata/searchdefs.php. There is a definition like
    PHP Code:
    $searchdefs['Contacts'] = array(
                
    'templateMeta' => array('maxColumns' => '3'
                                
    'widths' => array('label' => '10''field' => '30'), 
                               ), 
    You could try to modify the "maxColumns" value.
    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

  3. #3
    jad1983 is offline Sugar Community Member
    Join Date
    Jul 2011
    Location
    Zürich, Switzerland
    Posts
    23

    Default Re: change the number of columns in advanced Search

    Thanks. I might give this a shot, but I'm not sure I'll understand how to make this update-safe. I don't want to just go in there and CHANGE it :-)

    Any suggestions highly welcome.

  4. #4
    rafael.q.g@hotmail.com's Avatar
    rafael.q.g@hotmail.com is offline Sugar Community Member
    Join Date
    Jun 2011
    Location
    Florianópolis - Brazil
    Posts
    782

    Default Re: change the number of columns in advanced Search

    To make it upgrade safe just do the samething but on file:
    custom/modules/<modulename>/metadata/searchdefs.php
    Rafael Queiroz Gonçalves
    Advanced OMG UML Certified Professional
    Sun Certified Enterprise Architect for the Java Platform
    Sun Certified Programmer for the Java 2 Platform
    IBM Certified Advanced Application Developer - Lotus Notes and Domino
    IBM Certified Application Developer - IBM WebSphere Portlet Factory
    Computer Science Mastering / UFSC - PPGCC

  5. #5
    jad1983 is offline Sugar Community Member
    Join Date
    Jul 2011
    Location
    Zürich, Switzerland
    Posts
    23

    Default Re: change the number of columns in advanced Search

    Hi Raf,

    This I know, but what exactly, i.e. how much code I must add to this file I don't know. Do I have to copy the whole file "searchdefs" and make changes? oder can I make a small extension-version of "searchdefs" in the custom folder and only add the code that's necessary to override the column setting?

    That's what I don't understand, but I hop you do understand what the h** I'm talking about

    :-)

    John

  6. #6
    jad1983 is offline Sugar Community Member
    Join Date
    Jul 2011
    Location
    Zürich, Switzerland
    Posts
    23

    Default Re: change the number of columns in advanced Search

    Hi,

    There already was a searchdefs.php file in the custom/modules/Contacts/metadata folder. So I changed it there and that worked. Thanks for your help.

    Next question would be how to change the width of the search field boxes. In the searchdefs file there are some settings for width. I tried changing them (the percentage indications) to no effect.

    Also at the bottom, where it reads:

    Code:
      'templateMeta' => 
      array (
        'maxColumns' => '2',
        'widths' => 
        array (
          'label' => '10',
          'field' => '30',
        ),
    I tried changing the values for label and field, to no effect.

    Any ideas?

    John

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 2011-02-01, 07:18 AM
  2. Replies: 1
    Last Post: 2010-10-26, 02:45 PM
  3. Replies: 4
    Last Post: 2010-07-02, 06:39 AM
  4. Saved search & Layout: Columns sorter not working [Display Columns]
    By kurt.maderal in forum General Discussion
    Replies: 0
    Last Post: 2009-07-08, 02:12 PM
  5. Replies: 2
    Last Post: 2009-01-23, 09:50 PM

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
  •