Ok all figured out. These are the steps to follow:
-------------SugarCRM 6.1---------------
File: ****/modules/Calendar/templates/template_calendar.php
There are 2 things to do to to be able to color the meetings depending on their status:
- Create a $color variable with different values depending on the status.
-Use the $color variable in the call to show the calendar:
------------------------------------------------------------------------------
1st :
In line 143 (right after else { $meetingStatus = ''; } ) , you need to add the following code:
PHP Code:
switch ($app_list_strings['meeting_status_dom'][$act->sugar_bean->status]) {
case "Planned":
$color = "style=\"background-color:red\"";
break;
case "Held":
$color = "style=\"background-color:green\"";
break;
case "Not Held":
$color = "style=\"background-color:grey\"";
break;
}
2nd :
In line 155 we need to make a little modification to add the $color variable we created:
PHP Code:
<td width="100%" '.$color.' ><a ' . $extra . ' href="index.php?module=Meetings&action=DetailView&record=' .
Bookmarks