Results 1 to 6 of 6

Thread: Subpanels before account info

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

    Default Subpanels before account info

    Hello,

    Can subpanels move up before account information ?

    Tpl
    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: Subpanels before account info

    Yes, it is possible!
    You need to create a custom view for the module and override the methods display and process. Actually you need to remove the $this->displaySubPanels() from process function and add it in the display prior to Account info.

    Have a look on these functions in the file include/MVC/View/SugarView.php to understand the process.

    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
    timolein is offline Sugar Community Member
    Join Date
    May 2008
    Posts
    51

    Default Re: Subpanels before account info

    hmm, im not quite sure if I get this..

    Can you please post example for me? Or more details how to do this..

    Timo

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

    Default Re: Subpanels before account info

    Can someone help, I really need this modification..

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

    Default Re: Subpanels before account info

    Andopes,

    Is SugarView.php only place I need to modify account view ?

    Timo

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

    Default Re: Subpanels before account info

    AHAAA!!

    $this->buildModuleList();
    $this->preDisplay();
    $this->displayErrors();
    if ($this->_getOption('show_subpanels')) $this->displaySubPanels();
    $this->display();
    $GLOBALS['logic_hook']->call_custom_logic('', 'after_ui_frame');





    Copy this "if ($this->_getOption('show_subpanels')) $this->displaySubPanels();" two lines up

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 2007-04-04, 04:50 PM
  2. Upgrade to 4.5.0f - viewing account info
    By CharlieArmor in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2006-12-10, 09:20 AM
  3. Replies: 0
    Last Post: 2006-09-06, 07:58 AM
  4. Populate account info
    By crystalsinger in forum Feature Requests
    Replies: 1
    Last Post: 2004-09-13, 08:46 AM
  5. New tasks account info
    By sean in forum Help
    Replies: 1
    Last Post: 2004-08-04, 04:46 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
  •