10. Setting VReports Dashboard as Homepage
Users can set the VReports Dashboard as the Homepage of the CRM
Last updated
Users can set the VReports Dashboard as the Homepage of the CRM
Last updated
Can a user set VReport's dashboard as home page?
Yes, user can set Vreports dashboard as homepage. Following is the changes that user have to make
$default_module = 'VReports';
if($module == 'Calendar') { // To load MyCalendar instead of list view for calendar //TODO: see if it has to enhanced and get the default view from module model $view = 'Calendar'; }
if($module == 'Calendar') { // To load MyCalendar instead of list view for calendar //TODO: see if it has to enhanced and get the default view from module model $view = 'Calendar'; }elseif($module == 'VReports') { $view = 'DashBoard'; }
if ($this->hasLogin()) { $defaultModule = $currentUser->defaultlandingpage; $moduleModel = Vtiger_Module_Model::getInstance($defaultModule); if(!empty($defaultModule) && $defaultModule != 'Home' && $moduleModel && $moduleModel->isActive()) { $module = $defaultModule; $qualifiedModuleName = $defaultModule; $view = 'List'; if($module == 'Calendar') { // To load MyCalendar instead of list view for calendar //TODO: see if it has to enhanced and get the default view from module model $view = 'Calendar'; } } else { $module = 'Home'; $qualifiedModuleName = 'Home'; $view = 'DashBoard'; } } else { $module = 'Users'; $qualifiedModuleName = 'Settings:Users'; $view = 'Login'; }
if ($this->hasLogin()) { //$defaultModule = $currentUser->defaultlandingpage; $defaultModule = vglobal('default_module'); $moduleModel = Vtiger_Module_Model::getInstance($defaultModule); if(!empty($defaultModule) && $defaultModule != 'Home' && $moduleModel && $moduleModel->isActive()) { $module = $defaultModule; $qualifiedModuleName = $defaultModule; $view = 'List'; if($module == 'Calendar') { // To load MyCalendar instead of list view for calendar //TODO: see if it has to enhanced and get the default view from module model $view = 'Calendar'; }elseif($module == 'VReports'){ $view = 'DashBoard'; } } } else { $module = 'Users'; $qualifiedModuleName = 'Settings:Users'; $view = 'Login'; }