Results 1 to 5 of 5

Thread: Basic Search Layout

  1. #1
    pkubat is offline Member
    Join Date
    Aug 2010
    Posts
    9

    Default Basic Search Layout

    We have added two drop-down custom fields to the contacts search. Being they are displayed as multi-select listbox the layout if messed up. Just four fields, but it wraps, and is really hard to "read'

    Is there a means to control they layout of the basic search for contacts?

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Basic Search Layout

    So you want to ensure these dropdowns fields will be rendered as real dropdown fields on Search Form, right?

    So you need to add the attrbute

    PHP Code:
    'displayParams' -> array(
      
    'size' => 1,
    ), 
    On dropdown field defs at searchdefs.php

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    pkubat is offline Member
    Join Date
    Aug 2010
    Posts
    9

    Default Re: Basic Search Layout

    Thanks André!

    That's 1/2 the question. Now the dropdowns are drop downs!

    But it still wraps the fourth field to the next line. They all are 10% width. See the attached screenshot.
    Attached Images Attached Images  

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Basic Search Layout

    I´m not sure I got your question, so I´ll answer what I understood.

    By default SugarCRM render 3 fields per row on Search Form.

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  5. #5
    pkubat is offline Member
    Join Date
    Aug 2010
    Posts
    9

    Default Re: Basic Search Layout

    Thanks again.

    So I added templateMeta to override, but it does not work. Is this the correct means to override the number of columns?

    PHP Code:
    $searchdefs ['Contacts'] =
    array (
      
    'templateMeta' => array('maxColumns' => '5',
       
    'widths' => array('label' => '10''field' => '30')),
      
    'layout' =>
      array (
        
    'basic_search' =>
        array ( 

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2009-05-22, 12:04 PM
  2. Close Teb Search(Basic Search/Advance Search)
    By waree in forum Developer Help
    Replies: 1
    Last Post: 2008-12-27, 04:14 PM
  3. Create ' Saved Search & Layout ' in Basic Search
    By kodikarthi in forum General Discussion
    Replies: 1
    Last Post: 2008-11-26, 06:00 AM
  4. Accounts Basic Search causes search in custom module
    By Kirch in forum Developer Help
    Replies: 2
    Last Post: 2008-01-23, 06:51 PM
  5. Replies: 2
    Last Post: 2006-05-06, 01:24 AM

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
  •