Results 1 to 6 of 6

Thread: 6.0.2: Make 'calls' default in Activities, not calendar.

  1. #1
    al3
    al3 is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    394

    Default 6.0.2: Make 'calls' default in Activities, not calendar.

    I upgraded to 6.0.2 from 5.x and I find that when I click Activities, the Calendar is what is shown. However, in the previous version I got Calls, which was much better for me. Is there some way I can make the call-list the default for the Activity button?

    Thanks,

    Al

  2. #2
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: 6.0.2: Make 'calls' default in Activities, not calendar.

    Hello,

    Create a file custom/modules/Activities/views/view.list.php

    Paste the following code inside it.

    PHP Code:
    <?php
    require_once('include/MVC/View/views/view.list.php');

    class 
    ActivitiesViewList extends ViewList
    {
         public function 
    display()
         {
             
    $GLOBALS['mod_strings'] = return_module_language($GLOBALS['current_language'], 'Calls');
             echo 
    get_module_title("Calls"$GLOBALS['mod_strings']['LBL_MODULE_TITLE'], true);
            
    // Overload the export module since the user got here by clicking the "Activities" tab
            
    $export_module "Calls";
            
    $_REQUEST['module'] = 'Calls';
            
    $controller ControllerFactory::getController('Calls');
            
    $controller->loadBean();
            
    $controller->preProcess();
            
    $controller->process();    
            
            
    //Manipulate view directly to not display header, js and footer again
            
    $view ViewFactory::loadView($controller->view$controller->module$controller->bean$controller->view_object_map);
            
    $view->options['show_header'] = false;
            
    $view->options['show_title'] = false;
            
    $view->options['show_javascript'] = false;
            
    $view->process();  
            if(
    $GLOBALS['external_cache_enabled']) {
                
    sugar_cache_clear('VIEW_CONFIG_FILE_Calls_TYPE_list');    
            }
            die();
         }
    }
    ?>
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  3. #3
    al3
    al3 is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    394

    Default Re: 6.0.2: Make 'calls' default in Activities, not calendar.

    Wow. That worked great. Now when I click Activities I get my call list. THANK YOU!

    What happens when we get the next update? Will I have to do this over again? No big deal... just curious.

    Was this this an oversight by the Sugar developers to not have Activities configurable?

    Al

  4. #4
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: 6.0.2: Make 'calls' default in Activities, not calendar.

    Hallo,

    Great!! As it is an upgrade safe manner, you dont need to rewrite after next upgrade.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  5. #5
    jnassi's Avatar
    jnassi is offline Sugar Team Member
    Join Date
    Apr 2005
    Posts
    455

    Default Re: 6.0.2: Make 'calls' default in Activities, not calendar.

    David, great tip! I added this to our Developer Blog: http://developers.sugarcrm.com/wordp...back-to-calls/
    Jason Nassi
    SugarExchange.com

  6. #6
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: 6.0.2: Make 'calls' default in Activities, not calendar.

    Hello,

    Thank you very much. I am glad to know that my suggestion was useful. Thanks for posting my tip, will always try to contribute knowledge.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. calls - make name box bigger
    By Operator in forum Developer Help
    Replies: 6
    Last Post: 2010-04-01, 01:39 PM
  2. Calls and Meetings in Activities
    By mrauch in forum Help
    Replies: 6
    Last Post: 2010-03-23, 10:24 PM
  3. Activities tab only shows calls
    By mikesolomon in forum Help
    Replies: 3
    Last Post: 2009-04-24, 08:24 AM
  4. How can I make calls ?
    By kalitscat1988 in forum Help
    Replies: 2
    Last Post: 2008-02-22, 05:49 AM
  5. Replies: 2
    Last Post: 2005-03-23, 12:36 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
  •