Results 1 to 6 of 6

Thread: how to enlarge the frame

  1. #1
    eddiechen is offline Sugar Community Member
    Join Date
    Jun 2008
    Posts
    462

    Default how to enlarge the frame

    now I custom the document module Categary dropdown.

    I want to enlagre ghe Categary frame. show all the text. how to do?
    Attached Images Attached Images  

  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: how to enlarge the frame

    You need to create a new template file inside folder include/SugarFields/Fields/ as a copy of include/SugarFields/Fields/Multienum
    Rename the php script according the the name of the new folder and rename the class name.
    Also update the path to the templates inside the script.
    Then edit the EditView.tpl and modify the style="width:150" according to your needs.
    Then edit the editviewdefs.php of the module and add the atribute into field defs:

    'type' => 'Newfieldtype',

    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
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default Re: how to enlarge the frame

    This worked for me

    Thanks André !
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  4. #4
    blindude24 is offline Member
    Join Date
    May 2009
    Posts
    9

    Default Re: how to enlarge the frame

    Quote Originally Posted by andopes View Post
    You need to create a new template file inside folder include/SugarFields/Fields/ as a copy of include/SugarFields/Fields/Multienum
    Rename the php script according the the name of the new folder and rename the class name.
    Also update the path to the templates inside the script.
    Then edit the EditView.tpl and modify the style="width:150" according to your needs.
    Then edit the editviewdefs.php of the module and add the atribute into field defs:

    'type' => 'Newfieldtype',

    Cheers
    When you say "also update the path to the templates inside the script" I am unsure what you are referring to.
    Is the script SugarFieldxxxx.php or something else?
    I don't see any paths to update in this script.

  5. #5
    dekleinemedia is offline A Prolific Poster
    Join Date
    May 2009
    Location
    Netherlands
    Posts
    241

    Default Re: how to enlarge the frame

    Quote Originally Posted by blindude24 View Post
    When you say "also update the path to the templates inside the script" I am unsure what you are referring to.
    Is the script SugarFieldxxxx.php or something else?
    I don't see any paths to update in this script.
    You have to modify the script you create yourself. If, for exampel you copy the directory "Enum" (include/SugarFields/Fields) and rename this to Enum_Status. You have to modify the .php script inside this directory. There you have to change the path. It speaks for itself.
    Goodluck
    Kind regards,

    De Kleine Media


    SugarCRM CE v.5.2.0h
    Windows platform
    MySQL v.5.1
    phpMyAdmin - 2.11.2.2
    Apache Server v.2.0

  6. #6
    blindude24 is offline Member
    Join Date
    May 2009
    Posts
    9

    Default Re: how to enlarge the frame

    I created a special field called TextBig that will be a textarea which is bigger then the regular size.
    The folder is called "TextBig" and there are 3 files in this folder. The files are editview and detailview tpl files and the php file that I renamed to "SugarFieldTextBig.php"
    I renamed the class to reflect the new name but still don't understand where the path is changed for the template files.
    Also I am running sugarcrm 5.2.0e if that makes a difference.

    Below are the contents of the code of the php file:

    Code:
    require_once('include/SugarFields/Fields/Base/SugarFieldBase.php');
    
    class SugarFieldTextBig extends SugarFieldBase {
    
    	function getDetailViewSmarty($parentFieldArray, $vardef, $displayParams, $tabindex) {
    		$displayParams['nl2br'] = true;
    		$displayParams['url2html'] = true;
    		return parent::getDetailViewSmarty($parentFieldArray, $vardef, $displayParams, $tabindex);
        }
    
    	function getWirelessEditViewSmarty($parentFieldArray, $vardef, $displayParams, $tabindex) {
    		$displayParams['nl2br'] = true;
    		$displayParams['url2html'] = true;
    		 return parent::getWirelessEditViewSmarty($parentFieldArray, $vardef, $displayParams, $tabindex);
        }
    }

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Die in the same frame
    By genius786 in forum Developer Help
    Replies: 1
    Last Post: 2009-02-27, 03:34 AM
  2. Add a frame to 4.51 Edit View
    By dogfuel in forum Developer Help
    Replies: 1
    Last Post: 2008-02-21, 04:14 AM
  3. Forcing a new portal page to open in a frame?
    By tom_mancino in forum Help
    Replies: 0
    Last Post: 2006-02-18, 06:25 PM
  4. Sessions within frame
    By SuperJared in forum Help
    Replies: 1
    Last Post: 2005-11-18, 11:41 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
  •