Results 1 to 2 of 2

Thread: Custom view

  1. #1
    timolein is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    51

    Default Custom view

    Hi,

    What file I have to modify to get custom view at account details page and move subpanels before account info ? I really need help with this issue.
    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: Custom view

    Hi Timolein

    This is an example for the Opportunities module on SugarCRM 5.* version.
    Create the file custom/modules/Opportunities/views/view.detail.php containing this code.
    PHP Code:
    <?php
    if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

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

    class 
    OpportunitiesViewDetail extends ViewDetail {
         function 
    OpportunitiesViewDetail(){
             
    $this->options['show_subpanels'] = false;
             
    parent::__construct();
         }

        function 
    display() {
            
    $this->dv->process();
            
    $this->displaySubPanels();
            echo 
    $this->dv->display();
        }
    }
    ?>
    Obviously you need to modify the module references if you are going to implement in another one.

    Regards
    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Add new custom button to list view of custom module
    By rob78 in forum Developer Tutorials
    Replies: 7
    Last Post: 2010-02-19, 08:06 AM
  2. Custom module not picking up custom detail view
    By josh.sweeney in forum Developer Help
    Replies: 1
    Last Post: 2009-02-17, 02:35 PM
  3. Custom query on custom view (List)
    By jasv in forum Developer Help
    Replies: 4
    Last Post: 2009-02-09, 10:36 AM
  4. TinyMCE in a Custom Module - Custom View
    By jjwdesign in forum Developer Help
    Replies: 1
    Last Post: 2008-09-17, 04:51 PM
  5. Replies: 13
    Last Post: 2007-10-04, 05:53 AM

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
  •