I have a resource calendar in my suitecrm (basically it takes projects and synks them to a day !)
When i click on “resource calendar” if i have this calendar in front of me i can search:
Search Projects
Search Users
Select Contacts
Type
Start Date:
How do I edit these, i.e. get rid of “Search Projects”.
Thanks in advance for your help !
pgr
11 September 2020 20:49
2
Hi!
Can you send a screenshot? I’m not sure I know what you’re talking about…
pgr
12 September 2020 08:59
4
I’d say this is probably here
echo '<div class="moduleTitle"><h2> ' . $mod_strings["LBL_RESOURCE_CHART"] . ' </h2></div>
<table id="header_table_chart" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td scope="row_label" nowrap="nowrap" >
<label for="projects">'.$mod_strings["LBL_PROJECTS_SEARCH"].'</label>
</td>
<td scope="row_val" nowrap="nowrap" >
<select id="projects" name="projects" multiple size="6" style="width: 250px" >
<option value="">'.$mod_strings["LBL_ALL_PROJECTS"].'</option>';
//From the query above, populates the select box
foreach ($project_list as $project) {
if (in_array($project->id, $sel_projects)) {//Check if the select box option matches the resource passed in.
$selected = "selected='selected'"; //if so set it to selected
} else {
$selected = "";
}
echo '<option '.$selected.' value="'.$project->id.'">'.$project->name.'</option>';
}
This file has been truncated. show original
You would probably need to comment out or remove two td
blocks: the one starting on line 133, and the following one, which only ends on line 137, if I’m seeing things correctly.
Are you a developer? You need to understand the syntax there, otherwise you will break the code.
If you make the changes there directly, it won’t be upgrade-safe. It’s likely that this can be made upgrade-safe by using a copy of this file in custom dir, you’d have to try it.
Tell me if you need more help.
Hi
Thanks for that, yes I am a developer, I just couldn’t find that file !
Thanks for your help !
pgr
13 September 2020 10:17
6
This is how I found it (I often use this trick in SuiteCRM):
On GitHub, search for a distinctive string with quotes:
In the results, you get the corresponding Label (LBL_… ), in this case, LBL_PROJECTS_SEARCH
.
Now do a second search for that, and it takes you to the place in the code:
–> https://github.com/salesagility/SuiteCRM/search?q=LBL_PROJECTS_SEARCH&unscoped_q=LBL_PROJECTS_SEARCH