Switching Activities Page Back to Calls

bsoremsugar —  September 27, 2010 — 1 Comment

One of the changes that we made in our 6.0 release was to have the Activities tab bring you to the Calendar day view, instead of the Calls ListView.

However, some users find that the Calls ListView makes more sense for them as the default.  Or, maybe they find the Meetings ListView to be more appropriate for their deployment.

A member of our developer community, David Boris, posted an upgrade-safe tip in the Forums to accomplish this change.  Thanks for the tip, David!

  1. Create (or modify) a PHP file ./custom/modules/Activities/views/view.list.php
  2. Use this code in that file to set the Activities default to the Calls ListView:
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_o
bject_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();
}
}

You can swap out the Calls for Meetings, or similar.

Trackbacks and Pingbacks:

  1. » How to Switch the Activities Page Back to Calls in Sugar 6.0 | Blog Archive | SugarCRM Knowledge Base - October 1, 2010

    […] In Sugar 6.0, the default view of the Activities page was switched from the Calls List View to the Calendar Day View.  To learn how to change the default view back to the Calls List View, click here. […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s