Show RESOURCE Location in "Schedule" view

Post or request community customization work
Post Reply
capt_harlock77
Posts: 1
Joined: Wed Jul 29, 2020 9:01 am

Show RESOURCE Location in "Schedule" view

Post by capt_harlock77 »

Hello all,
I would like to show, in the "Schedule" view, the resource "Location" value. I basically want an additional row, right below the resources names, to show such value.
I hence added the following lines in my "schedule-flipped.tpl" (in the thead section, right after the "$smarty.capture.resources" line):

Code: Select all

<tr>
  <td>Location</td>
  {foreach from=$Resources item=resource name=resource_loop}
    <td>{$resource->GetLocation()}</td>
  {/foreach}
</tr>
However, the "GetLocation()" method/function throws an error. I guess it's because I need to define the "GetLocation()" function somewhere -- my question is, where?

Any help is highly appreciated.

Post Reply