Results 1 to 5 of 5

Thread: Editing Layouts

  1. #1
    seismicmike is offline Member
    Join Date
    Dec 2008
    Posts
    7

    Default Editing Layouts

    Hey, we've setup a few multi-select boxes on our advanced search forms that we'd like to use to search. The only trouble is they seem to have a fixed width so that they won't show all of the text in the box.

    How can I change the width of the fields?

  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: Editing Layouts

    Hi Mike

    You can either:
    1. override the file include/SugarFields/Fields/Multienum/SearchView.tpl modifying the style='width:150' or
    2. copy the folder include/SugarFields/Fields/Multienum/ into a new one defining a new field template. his way you can modify that attribute in a new field template without modify the core file. You will need to ad the attribute

    PHP Code:
    'type' => 'Newfield'
    into searchdefs.php if you choose the second option.

    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
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Editing Layouts

    I ran into a similar problem before. Sugar, for reasons unknown to me, sets the default length of those type of fields to 100. Unfortunately, it also doesn't let you control the width through the UI.

    I solved my problem was through changing the LEN parameter for the corresponding field in vardefs.php
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  4. #4
    seismicmike is offline Member
    Join Date
    Dec 2008
    Posts
    7

    Default Re: Editing Layouts

    Hmmm good suggestions.

    Andopes, your #1 didn't seem to have any affect, so I might try #2, but I don't know...

    Angel: I wasn't able to find the entries for my custom fields in the vardefs.php file. I'm assuming they would be under that module, right? So if it's a Contact field, it would be under /modules/Contacts/vardefs.php, right?

    Thanks for your help so far.

  5. #5
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Editing Layouts

    Take a look at the fields_meta_data table. It should contain the field definition.

    My situation was related to a default field on a custom module, so it was in vardefs.php instead. But yours should appear in fields_meta_data.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Editing layouts
    By k3k3 in forum Help
    Replies: 2
    Last Post: 2009-02-02, 06:02 AM
  2. Replies: 3
    Last Post: 2008-02-25, 04:07 PM
  3. Editieren des Layouts
    By Plogmann in forum Deutsche
    Replies: 1
    Last Post: 2005-12-24, 12:43 PM
  4. Editing Layouts - Links to other layouts
    By richard.bessey in forum Help
    Replies: 3
    Last Post: 2005-12-02, 04:35 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
  •