Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Day is associated to the name of the working day to be set up:

Day day = ‘monday’

Start_time parameter is the starting hour for the specified day, the format must be hour:minutes

...

title
Code Block
languagejson
[[gt.days.holidays]]
day=""
start_date = "" 
end_date = ""
message = ''
Expand

Day

...

is associated to the name of the holiday day to be set up:

...

day =

...

‘christmas’

Start_date parameter is the starting day for the specified holiday, the format must be month-day

...

End_date parameter is the ending day for the specified dayholiday, the format must be month-day

...

Message parameter is included so a custom message can be set up for the specific holiday, instead of having a generic message for all the holidays:

message = ‘This is christmas custom message’

Example single holiday:

Code Block
languagejson
[[gt.days.holidays]]
day="Christmas"
start_date = "11-25" 
end_date = "11-25"
message = 'This is christmas custom message'

Example multiple holidays:

Code Block
languagejson
[[gt.days.holidays]]
day="Christmas"
start_date = "11-25" 
end_date = "11-25"
message = 'This is Christmas custom message'

[[gt.days.holidays]]
day="Thanksgiving"
start_date = "11-23" 
end_date = "11-23"
message = 'This is Thanksgiving custom message'

[[gt.days.holidays]]
day="Labor Day"
start_date = "09-02" 
end_date = "09-02"
message = 'This is Labor Day custom message'
Info

Note that the structure for a holiday starts with [[gt.days.holidays]]. This is required as this header appends all the holidays with into the same list. Please, be sure to always add this header to each holiday.