Results 1 to 9 of 9

Thread: New Contact on Homepage

  1. #1
    DanBrown is offline Senior Member
    Join Date
    Jul 2008
    Posts
    95

    Question New Contact on Homepage

    Hi All

    Im using sugar 5.1.0, there is a "New Contact" short cut (quick create) area on the left of the home page, i would like to remove as it confuses users of the CRM.

    Many Thanks

  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: New Contact on Homepage

    Hi Dan

    Add the following code into custom/Extension/modules/Home/Ext/Menus/menu.ext.php

    global $module_menu;

    $removed_menus_opt = array('CreateContacts');
    foreach($module_menu as $id => $mmenu){
    foreach($removed_menus_opt as $rm_menu) {
    if($mmenu[2] == $rm_menu) {
    unset($module_menu[$id]);
    }
    }
    }

    Go to Admin -> Repair -> Repair Extension after saving that file.

    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
    DanBrown is offline Senior Member
    Join Date
    Jul 2008
    Posts
    95

    Default Re: New Contact on Homepage

    Hi andre,

    Unfortunately my path isnt matching yours... (see below)

    C:\sugarcrm-5.0.0g\htdocs\sugarcrm\custom\Extension\modules - in there i have accounts and cases

    I want to remove the part on the homepage (please see attached image)

    Many Thanks
    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: New Contact on Homepage

    Hi Dan

    Create the file custom/modules/Contacts/views/view.sidequickcreate.php with this content:

    PHP Code:
    class ViewSidequickcreate extends SugarView {
        function 
    ViewSidequickcreate() {
            
    parent::SugarView();
        }
        
        function 
    display() {
            return 
    '';
        }

    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
    DanBrown is offline Senior Member
    Join Date
    Jul 2008
    Posts
    95

    Default Re: New Contact on Homepage

    Hi andre,

    i created the missing path section and then made the php file with the code, when i viewed on the home page it worked but the code appeared along the top of the screen???

    I tried to delete the php file and this seems to have fixed it, the part is disappeared and the writing is gone but there is no php file? how is it doing it?

    Thanks

  6. #6
    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: New Contact on Homepage

    Quote Originally Posted by DanBrown
    Hi andre,

    i created the missing path section and then made the php file with the code, when i viewed on the home page it worked but the code appeared along the top of the screen???

    I tried to delete the php file and this seems to have fixed it, the part is disappeared and the writing is gone but there is no php file? how is it doing it?

    Thanks
    Hi Dan

    I did not understand that issue.
    Can you explain again?
    A mockup could be useful.

    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.

  7. #7
    DanBrown is offline Senior Member
    Join Date
    Jul 2008
    Posts
    95

    Exclamation Re: New Contact on Homepage

    Right,

    I created C:\sugarcrm-5.0.0g\htdocs\sugarcrm\custom\modules\Contacts\vie ws\view.sidequickcreate.php

    With the following code:

    class ViewSidequickcreate extends SugarView {
    function ViewSidequickcreate() {
    parent::SugarView();
    }

    function display() {
    return '';
    }
    }

    It removes the quick create section but...

    The code appears at the top, see image
    Attached Images Attached Images  

  8. #8
    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: New Contact on Homepage

    Hi Dan

    Make sure you added the <?php and ?>

    PHP Code:
    <?php
    class ViewSidequickcreate extends SugarView {
        function 
    ViewSidequickcreate() {
            
    parent::SugarView();
        }
        
        function 
    display() {
            return 
    '';
        }
    }
    ?>
    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.

  9. #9
    DanBrown is offline Senior Member
    Join Date
    Jul 2008
    Posts
    95

    Thumbs up Re: New Contact on Homepage

    cheers andre thats done it

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Contact Search
    By LGnord in forum Help
    Replies: 1
    Last Post: 2008-07-10, 06:11 PM
  2. Multiple Contact Relate Fields in Accounts Module
    By avadtechnologies in forum Help
    Replies: 4
    Last Post: 2008-02-01, 03:30 AM
  3. Associating Bug Contact with Account
    By Softwise in forum Help
    Replies: 3
    Last Post: 2007-10-15, 03:41 PM
  4. making a contact sticky in all modules
    By sankar in forum Developer Help
    Replies: 0
    Last Post: 2006-08-11, 03:48 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
  •