Context: By default when a booking is made in Calpendo the booking block will show the colour defined for that resource. This booking block has two areas: one for the booking heading and one for the booking body. Although they use this default colour based on the resource it is possible to define an alternate colour. This could be useful for making all bookings across different resources have the same colour based on a common piece of data.
For this KB we will use a scenario where we would like just the booking heading to show the same colour across multiple bookings where those bookings are part of the same project.
Suitable for: Admins with an understanding of working with Bakery
Step 1: Making changes to the Bakery
- Click on Admin > Bakery
- Under the list of Biskit Definitions on the left find the Biskit called Base Project and then select the Project biskit under
- Edit the Project Biskit and select Add New in Properties
- Set the name for the new property to be "colour"
- Set its type to be "string"
- In Attributes uncheck the “Visible in Biskit List” option
- Change the String Property type to “Colour”
- Save the Biskit
- Click Update DB Schema
- Click Reload DB Configuration and then refresh the web browser page
- Click on Admin > Global Preferences
- Go to the Bookings tab
- The fourth group of properties is titled Format for Bookings on the Calendar
- Change Booking day/week title format from “Use default format” to “Specify the format”
- Add the following HTML into the text box which appears
<div class="ftrgwtdate-eventHeader.titleBar" style="background-color:%project.colour?ss:#000000%;height:100%;font-size:75%">%project.projectCode?ss - :%%booker%</div>
- Save the Global Preferences
Step 3: Adding a colour for the project
- In the Projects menu select Project Search
- Choose a project to edit
- In the project find the colour property and choose a colour
- Now all bookings for that project will have the same colour for the booking block heading