Results 1 to 5 of 5

Thread: HOW to remove button from ListView ?

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

    Default HOW to remove button from ListView ?

    Hi, in Contacts Module how can i remove the buttons 'Merge Duplicates' and 'Compose Email' from ListView?
    Thanks in advance!
    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

  2. #2
    salesagility's Avatar
    salesagility is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    UK
    Posts
    2,379

    Default Re: HOW to remove button from ListView ?

    Hi ... I know answering a question with a question isn't always useful .... but why do you want to get rid of these functions? .... they're very useful and in the case of merge duplicates .... indispensable (IMHO).

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

    Default Re: HOW to remove button from ListView ?

    Quote Originally Posted by salesagility View Post
    Hi ... I know answering a question with a question isn't always useful .... but why do you want to get rid of these functions? .... they're very useful and in the case of merge duplicates .... indispensable (IMHO).
    Hi,
    That's no problem, ask as many as you want I'm creating this system for my company, and they want this system to include functions for the users as little as possible . That's why i want it to keep the system easy and simple.
    I don't want to delete these functions for good, but just for a while so i can use them again when i go further develop the system.
    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
    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 remove button from ListView ?

    Quote Originally Posted by dekleinemedia View Post
    Hi, in Contacts Module how can i remove the buttons 'Merge Duplicates' and 'Compose Email' from ListView?
    Thanks in advance!
    Create the file custom/modules/Contacts/views/view.list.php containing this code:

    PHP Code:
    <?php
    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

    require_once(
    'include/MVC/View/views/view.list.php');

    class 
    ContactsViewList extends ViewList {
        function 
    preDisplay() {
            require_once(
    'custom/include/ListView/ListViewSmartyContacts.php');

            
    $this->lv = new ListViewSmartyContacts();
        }
    }
    ?>
    Create the folders and script custom/include/ListView/ListViewSmartyContacts.php containing this code:

    PHP Code:
    <?php
    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

    require_once(
    'include/ListView/ListViewSmarty.php');

    class 
    ListViewSmartyContacts extends ListViewSmarty {
        function 
    buildMergeDuplicatesLink() {
            return 
    '';
        }

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

    Default Re: HOW to remove button from ListView ?

    André, again thanks a lot! .
    It works fine now. I appreciate
    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

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. remove edit button in listview
    By marketadvantage in forum Developer Help
    Replies: 1
    Last Post: 2011-06-24, 08:05 AM
  2. How do I remove select boxes in listview
    By mikesolomon in forum Developer Help
    Replies: 14
    Last Post: 2010-09-20, 06:26 AM
  3. remove delete button from listview
    By mikesolomon in forum Developer Help
    Replies: 13
    Last Post: 2008-10-02, 10:14 AM
  4. Want to remove some button
    By srivastava in forum Developer Help
    Replies: 3
    Last Post: 2008-06-04, 11:54 AM
  5. Replies: 0
    Last Post: 2006-04-19, 04:37 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
  •