Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Remove side create view from home

  1. #1
    ffletch is offline Member
    Join Date
    Sep 2008
    Posts
    14

    Default Remove side create view from home

    Hey all I'm running Sugar Version 5.2.0 (Build 5380). I am looking for a way to remove the "New Contact" side create view from the home tab. I see that customizing \custom\modules\Contacts\metadata\sidecreateviewde fs.php changes it here as well as on the contacts tab. However I'd like to remove it completely from the Home tab only and leave it on the Contacts tab and I can't see where to do that. Can anyone point me in the right direction?

  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: Remove side create view from home

    Hi ffletch

    Create the file custom/modules/Contacts/views/view.sidequickcreate.php and add this code into it:
    PHP Code:
    <?
    require_once('include/MVC/View/SugarView.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.

  3. #3
    ffletch is offline Member
    Join Date
    Sep 2008
    Posts
    14

    Default Re: Remove side create view from home

    Andre,

    Thanks for you response. This gets rid of the New Contact side create view for BOTH the home and contacts tab. Is it possible to remove it ONLY from the home tab?

  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: Remove side create view from home

    You need to override the script modules/Home/Forms.php
    Note that this customization is not upgrade safe.
    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
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: Remove side create view from home

    Quote Originally Posted by ffletch View Post
    Andre,

    Thanks for you response. This gets rid of the New Contact side create view for BOTH the home and contacts tab. Is it possible to remove it ONLY from the home tab?
    Try this in Andopes' code
    PHP Code:
    function display() {
                if (
    $_REQUEST['module'] == 'Home')
                    return 
    '';
               else
                   return 
    parent::display();
            } 
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

  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: Remove side create view from home

    Hi mvngti

    Nice tip!
    That is an obvious solution but I did not get it!
    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
    ffletch is offline Member
    Join Date
    Sep 2008
    Posts
    14

    Default Re: Remove side create view from home

    Ok, forgive me but I used the following code:

    PHP Code:
    <?php
    require_once('include/MVC/View/SugarView.php');
    class 
    ViewSidequickcreate extends SugarView {
            function 
    ViewSidequickcreate() {
                    
    parent::SugarView();
            }

    function 
    display() {
            if (
    $_REQUEST['module'] == 'Home')
                    return 
    '';
               else
                   return 
    parent::display();
            }  
    }
    ?>
    And it still does not appear in either module. I do see module=Contacts and module=Home in the URL so I'm pretty sure $_REQUEST['module'] is correct. Not sure if it matters but if I do this:

    PHP Code:
    <?php
    require_once('include/MVC/View/SugarView.php');
    class 
    ViewSidequickcreate extends SugarView {
            function 
    ViewSidequickcreate() {
                    
    parent::SugarView();
            }

    function 
    display() {
             return 
    parent::display();
            }  
    }
    ?>
    Nothing displays in either Contacts or Home. I forgot to mention that I am running in developer mode so I'm assuming that cache shouldn't be an issue. What am I missing?
    Last edited by ffletch; 2009-01-08 at 07:08 PM.

  8. #8
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: Remove side create view from home

    Sorry Adopes' original code was based on displaying nothing so you need a bit more in the class if it should display the view for Contacts.

    Copy ./include/MVC/View/views/view.sidequickcreate.php to your custom/modules/Contacts/views/view.sidequickcreate.php and then just change the display method to start with
    PHP Code:
    if ($_REQUEST['module'] == 'Home')
                    return 
    ''
    Keep the rest of the file, including the display method, in tact.
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

  9. #9
    rakeshg is offline Member
    Join Date
    Jan 2009
    Posts
    11

    Default Re: Remove side create view from home

    Hello friends,
    I need to customize left side bar as:
    i have to remove the link create.......
    and add only one text box
    can anybody help me please

  10. #10
    doyleyboy is offline Member
    Join Date
    Feb 2009
    Posts
    8

    Default Re: Remove side create view from home

    Is there a way of customising the sideviewcreate in home, so that it creates leads, rather then contacts?

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 2011-03-18, 02:48 PM
  2. Replies: 2
    Last Post: 2008-11-25, 07:05 PM
  3. 2 Subpanels side by side?
    By whighsmith in forum Help
    Replies: 0
    Last Post: 2008-10-14, 02:55 PM
  4. Replies: 3
    Last Post: 2008-08-06, 09:50 AM
  5. how to display sub panels side by side?
    By sankar in forum Developer Help
    Replies: 0
    Last Post: 2006-03-30, 11:02 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
  •