Results 1 to 10 of 10

Thread: Column widths.. Anyone Know???

  1. #1
    HomeTeam is offline Sugar Community Member
    Join Date
    Jan 2007
    Posts
    55

    Question Column widths.. Anyone Know???

    Hi gang,

    I am trying to adjust the column widths within a couple modules. Example: In Leads, the name fields are Very Wide.. and the description fields are narrow - leaving the descriptions to wrap multiple times, and expanding the lead data further than necessary. How can we narrow the Lead Name field and widen the Description name field?

    Thanks again, you all have been great!

    Jesse

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Column widths.. Anyone Know???

    For example the Accounts module would be

    modules/Accounts/metadata/listviewdefs.php

    or if you have edited the listview with studio

    custom/modules/Accounts/ext/metadata/listviewdefs.php (i think, it's in there somewhere.)
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: Column widths.. Anyone Know???

    kbrill, would it be a best practice from an upgrade-safe perspective to make the change only to the version of the mod made via Studio ( custom/modules/Accounts/ext/metadata/listviewdefs.php) ... and even to cause Studio to create this copy if only for this purpose?

    Andy
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

  4. #4
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Column widths.. Anyone Know???

    Yes, I would think that you always want to edit the studio created file, with the understanding that since in the current version you cannot edit widths, if you change something in Studio (ListView wise) you will loose your custom widths and will have to reset them.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  5. #5
    malcolmh's Avatar
    malcolmh is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Aug 2004
    Posts
    1,712

    Default Re: Column widths.. Anyone Know???

    HI,

    This is something that several of our customers are also talking about, sound like a good feature request tobe able to define the width of the columns
    Cheers Malcolm

    Genius4U Limited - Ingenious simple IT solutions for you / Genial einfache IT Lösungen für Sie
    http://www.genius4u.com or http://www.genius4u.de

  6. #6
    andydreisch's Avatar
    andydreisch is offline Sugar Team Member
    Join Date
    Apr 2005
    Location
    San Jose
    Posts
    2,080

    Default Re: Column widths.. Anyone Know???

    And this is because ...?

    Andy

    Quote Originally Posted by kbrill
    [Mod the Studio-created copy but] if you change something in Studio (ListView wise) you will loose your custom widths and will have to reset them.
    Andy Dreisch
    Vice President, Online Team


    Check out our Podcasts!
    Sugar University for training
    Sugar Wiki for developer and user help
    SugarForge for modules, themes, lang packs
    SugarExchange for production-ready extensions
    Enter/view bugs via the Sugar bug tracker

  7. #7
    jeffreyvsmith is offline Sugar Community Member
    Join Date
    Oct 2005
    Posts
    72

    Default Re: Column widths.. Anyone Know???

    Perhaps the above answered my questions, but my issue seems to be a bit different. I have, for example, edited the editview in the cases module. I have added some custom text fields and by default they appear to only have a column width of 20. I would like it to be around 70-80 but the only way I can think of to edit that is to go into the HTML...Is there a place where I can edit this globally for that custom field? In sugarcrm/custom/modules/cases I only have a lauguage folder?

    You'll also notice in the attached jpg that the date complete value field is way below the "date complete" label...Anyway to fix all this without going into the HTML?

    Sugar open source 4.5.1
    Fedora Core 6
    php 5.1.6
    apache 2.2.3
    Attached Images Attached Images  
    Last edited by jeffreyvsmith; 2007-02-07 at 04:25 PM. Reason: additional information

  8. #8
    jmaxwell is offline Sugar Community Member
    Join Date
    Jul 2005
    Posts
    51

    Default Re: Column widths.. Anyone Know???

    For listview fields, sugar does some bizzare calculation that is overly complex to determine field widths based on some sort of percentage calculation based on some of the listview field defs data. It's superfluous bunk IMNSHO, since it never works well. My solution was to disable and bypass the whole field width thing in the base listview code. The browser is way smarter than that sugar code when it comes to handling table cell (field) widths. Leaving the widths off the table rendering code allows the browser to scale the widths with the screen size much more elegantly. there's no reason to need to spec those field widths in the sugar code, esp. in such a wacky non-standard way.

    for the edit views, you will probably have to manually tweak the HTML to get it to do what you want, we had to in our instances.

    -Ed

  9. #9
    jeffreyvsmith is offline Sugar Community Member
    Join Date
    Oct 2005
    Posts
    72

    Default Re: Column widths.. Anyone Know???

    Thanks for your remarks Ed.

  10. #10
    drumcentral is offline Sugar Community Member
    Join Date
    Nov 2005
    Posts
    12

    Default Re: Column widths.. Anyone Know???

    Thanks for the info.

    As I've been customizing the layouts, the file I needed to change (for the list views) was:
    custom/modules/opportunities/metadata/listviewdefs.php.

    This had been a slight annoyance with all the text 'bunched' up.

    I also found the fix for the same thing in the dashlets file:
    modules/Opportunities/Dashlets/MyOpportunitiesDashlet/MyOpportunitiesDashlet.data.php

    I'm going to try to fix some other views now!

    Thanks again.

    Kenny
    Last edited by drumcentral; 2007-03-02 at 06:25 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Adding a column to a dashlet.
    By monkey in forum Developer Help
    Replies: 9
    Last Post: 2011-05-25, 11:51 AM
  2. Replies: 0
    Last Post: 2006-09-19, 07:43 AM
  3. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  4. SugarPro: team column in Contacts
    By hwaarl in forum Help
    Replies: 1
    Last Post: 2006-02-09, 05:51 PM
  5. SugarCrm 4.0 Patch
    By mgamboa in forum General Discussion
    Replies: 0
    Last Post: 2005-12-21, 04:14 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
  •