CRM Open Source Business & Social CRM Software

Results 1 to 9 of 9

Thread: How to change Contacts module?

  1. #1
    ptctaji is offline Member
    Join Date
    Jan 2009
    Posts
    15

    Default How to change Contacts module?

    Hi Best Developers!
    I Want to add a new field to Contacts Module by changing source code (I ONLY want to change source code) but i dont know how.
    Please Help me.
    Thanks

  2. #2
    genius786's Avatar
    genius786 is offline Sugar Community Member
    Join Date
    Nov 2008
    Location
    Karachi, Pakistan
    Posts
    119

    Smile Re: How to change Contacts module?

    Hi,

    In sugarcrm you have two option to add a field by source code or by sutdio. If you want to add a field through code then you have to open a directory of sugarcrm/custom/contacts/ext/vardefs/vardefs.php, i this php you have to write a variable defination and use sugarcrm/custom/contacts/language/lan_us.eng.php for label define and lastly use sugarcrm/custom/contacts/metadata/editviewdefs.php for show field in edit view of contact.

    I think this may help you or click here for more. Send me the appreciation reply if i solve your problem


    Best regards,
    SARFARAZ AHMED KHAN
    Karachi, Pakistan
    skype: genius_crystal
    genius_crystal@hotmail.com
    92-314-2595624

  3. #3
    daniel.passarini's Avatar
    daniel.passarini is offline Sugar Community Member
    Join Date
    Apr 2006
    Location
    São Paulo - SP / Brasil
    Posts
    80

    Default Re: How to change Contacts module?

    Hi ptctaji

    Why dont you just use the Studio to create the field? All changes will be upgrade safe and you can easily edit them in the future.
    Daniel de Carvalho Passarini

    "Fascinating" - Dr. Spock

  4. #4
    letrium is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    614

    Thumbs up Re: How to change Contacts module?

    If you want to add a field through code then you have to open a directory of

    sugarcrm/custom/contacts/ext/vardefs/vardefs.php


    PHP Code:
        'some_field' =>
            array (
                
    'name' => 'some_field',
                
    'vname' => 'LBL_SOME_FIELD',
                
    'type' => 'varchar',
                
    'len' => '255',
            ), 

    use sugarcrm/custom/contacts/language/lan_us.eng.php for label define

    PHP Code:
    'LBL_SOME_FIELD' => 'some field label'
    sugarcrm/custom/contacts/metadata/editviewdefs.php for show field in edit view of contact

    PHP Code:
    array (
          
    'some_field',
        ), 
    sugarcrm/custom/contacts/metadata/detailviewdefs.php for show field in detail view of contact

    PHP Code:
    array (
          
    'some_field',
        ), 
    sugarcrm/custom/contacts/metadata/listviewdefs.php for show field in list view of contact

    PHP Code:
        'SOME_FIELD' => array(
            
    'width' => '15%',
            
    'label' => 'LBL_SOME_FIELD',
                    
    'default' => true
            
    ), 
    Best regards,

  5. #5
    ptctaji is offline Member
    Join Date
    Jan 2009
    Posts
    15

    Default Re: How to change Contacts module?

    Hi.
    Thank you all.
    I do your solutions but no change has been affected.
    Did I Probably forget to do some details?
    Can you help me with more details.


    Thanks

  6. #6
    jsagar's Avatar
    jsagar is offline Sugar Community Member
    Join Date
    Mar 2008
    Location
    Ahmedabad,India
    Posts
    242

    Default Re: How to change Contacts module?

    Hi,
    I think you forget to
    Quick Repair and Rebuild from the admin Panel.
    Hope it will help you

    Thanks
    Best Regards
    ---------------------------------------
    Jaydeepsinh Sagar - iNET PROCESS
    jaydeepsinh.sagar@inetprocess.com
    http://www.inetprocess.co.in
    Projects :
    iNETDocs -Project of the month(Dec-2008)
    iNETGoogleMap

  7. #7
    ptctaji is offline Member
    Join Date
    Jan 2009
    Posts
    15

    Default Re: How to change Contacts module?

    Hi
    I do "Quick Repair and Rebuild" after all solutions but there is not any change.
    Please Help Me.
    Thanks.

  8. #8
    ptctaji is offline Member
    Join Date
    Jan 2009
    Posts
    15

    Default Re: How to change Contacts module?

    Hi Best Developers!.
    Thank you all to help me.
    I finally add new field in this module (Contacts Module).
    Thanks a lot.

  9. #9
    letrium is offline Sugar Community Member
    Join Date
    Dec 2008
    Posts
    614

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Change Contacts popupdefsEmail upgradesafe
    By TommyL in forum Developer Help
    Replies: 0
    Last Post: 2008-11-20, 02:53 PM
  2. How to change View Change Log link in Cases Module
    By rraushan2007 in forum Developer Help
    Replies: 1
    Last Post: 2008-08-27, 01:06 PM
  3. Replies: 3
    Last Post: 2008-03-31, 09:04 PM
  4. Replies: 0
    Last Post: 2006-09-22, 07:26 AM
  5. Contacts change
    By ziplizard in forum Developer Help
    Replies: 6
    Last Post: 2006-02-16, 11:38 PM

Tags for this Thread

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
  •