Results 1 to 6 of 6

Thread: Some layout customizations (need help)

  1. #1
    Monkeyman is offline Senior Member
    Join Date
    May 2009
    Posts
    55

    Default Some layout customizations (need help)

    I am customizing SugarCRM to me needs and stuck a little, since I am quite new to the system. Can you please help me with these 3 things:

    1. Move search form to the bottom and make it prettier.

    I found how to remove Advanced Search tab, but wasn't able to find how to move search form to the bottom of the page. I know, I should put something in customized view file, but what exactly?

    Also I would LOVE to make search form more prettier and accurate. I want to make it look like list panel (add header and border):



    2. Remove empty line from Detail View

    No idea why, but in Detail View you always have stupid empty line at the bottom:



    How can I remove that? Looks kinda ugly and lame.

    3. Remove extra tabs from the bottom of Detail View.

    I need only Sales tab, but there are tons of them at the bottom of Account page, for example:



    Any way to leave only chosen tabs? Right now I only need Sales, that's all.

  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: Some layout customizations (need help)

    Hi MonkeyMan

    The first requirement is pretty non-viable, once the search form needs to generate a query string to then render the list view data grid. It is possible and upgrade safe but it will take so much time. How important is that for your business?
    The second requirement: you can remove empty line from studio;
    The third requirement: you can remove some subpanel tabs through Admin -> Configure Group Tabs, but the tab "All" is always rendered and removing that definitely is non-upgrade safe.

    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
    Monkeyman is offline Senior Member
    Join Date
    May 2009
    Posts
    55

    Default Re: Some layout customizations (need help)

    Quote Originally Posted by andopes View Post
    Hi MonkeyMan
    The first requirement is pretty non-viable, once the search form needs to generate a query string to then render the list view data grid. It is possible and upgrade safe but it will take so much time. How important is that for your business?
    Guess, you were talking about moving search form to bottom. This is not very important if layout of the form can be modified. Where should I look at to make search form look like list panel?

    The second requirement: you can remove empty line from studio;
    Can you be more specific? There's NO empty line given in my layout, I checked it right when I saw the empty line.

    For example, if I create a new panel and just add a new field, it doesn't generate extra line, however I'll have (filter) field beside. But If I expand the added field to the whole row width (to get rid of (filter) field), I'll end up with extra line. Looks more like a bug to me.

    The third requirement: you can remove some subpanel tabs through Admin -> Configure Group Tabs, but the tab "All" is always rendered and removing that definitely is non-upgrade safe.
    Great! That really helped and now I got no tabs - only 4 panels: Activities, History, Opportunities, Member Organizations. Still I want leave only one - Opportunities. Can you tell me, where can I remove the rest ones?

    That's OK for me about upgrade safe, since I'm commenting, not removing lines. I just want my CRM be simple, accurate and clear.
    Last edited by Monkeyman; 2009-05-29 at 05:35 PM.

  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: Some layout customizations (need help)

    Regarding the first requirement, you need to create a custom view.list.php and override the method listViewProcess()

    The default function:
    PHP Code:
         function listViewProcess(){
            
    $this->processSearchForm();
            
    $this->lv->searchColumns $this->searchForm->searchColumns;
            
            if(!
    $this->headers)
                return;
            if(empty(
    $_REQUEST['search_form_only']) || $_REQUEST['search_form_only'] == false){
                
    $this->lv->setup($this->seed'include/ListView/ListViewGeneric.tpl'$this->where$this->params);
                
    $savedSearchName = empty($_REQUEST['saved_search_select_name']) ? '' : (' - ' $_REQUEST['saved_search_select_name']);
                echo 
    get_form_header($GLOBALS['mod_strings']['LBL_LIST_FORM_TITLE'] . $savedSearchName''false);
                echo 
    $this->lv->display();
            }
         } 
    The new function:
    PHP Code:
         function listViewProcess(){
                
    $savedSearchName = empty($_REQUEST['saved_search_select_name']) ? '' : (' - ' $_REQUEST['saved_search_select_name']);
                echo 
    get_form_header($GLOBALS['mod_strings']['LBL_LIST_FORM_TITLE'] . $savedSearchName''false);
            
    $this->processSearchForm();
            
    $this->lv->searchColumns $this->searchForm->searchColumns;
            
            if(!
    $this->headers)
                return;
            if(empty(
    $_REQUEST['search_form_only']) || $_REQUEST['search_form_only'] == false){
                
    $this->lv->setup($this->seed'include/ListView/ListViewGeneric.tpl'$this->where$this->params);
                echo 
    $this->lv->display();
            }
         } 
    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
    Monkeyman is offline Senior Member
    Join Date
    May 2009
    Posts
    55

    Default Re: Some layout customizations (need help)

    Great! I actually needed similar headers on both panels, not just on search form, but I managed to do the rest.
    Thank you!

    However, other 2 issues still open - can't find a solution myself. Especially interested in the 3rd one.

  6. #6
    Monkeyman is offline Senior Member
    Join Date
    May 2009
    Posts
    55

    Default Re: Some layout customizations (need help)

    OK, I managed to solve the 3rd issue. Just edited /modules/<ModuleName>/metadata/subpaneldefs.php file.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Customizations? Best way?
    By jim.thornton in forum Developer Help
    Replies: 4
    Last Post: 2009-02-20, 07:26 PM
  2. Replies: 0
    Last Post: 2008-05-13, 09:29 AM
  3. Replies: 16
    Last Post: 2008-04-24, 06:20 PM
  4. Replies: 1
    Last Post: 2007-09-22, 10:49 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
  •