Template for Calendars

SyncSign uses the “Render Document” created from the “Render Layout Template” to render the content of the screen.

Here is a minimal example of a template for the calendar system integration:

{
    "items": [
        { "type": "TEXT",
          "data": {
            "text": "",
            "id": "ONGOING_TIME",
            "font": "DDIN_24",
            "block": { "x": 0, "y": 30, "w": 400, "h": 25 },
            }
        },
        { "type": "TEXT",
          "data": {
            "text": "",
            "id": "ONGOING_EVENT_SUMMARY",
            "font": "YANONE_KAFFEESATZ_44_B",
            "lineSpace": 6,
            "block": { "x": 0, "y": 55, "w": 400, "h": 168 },
            }
        }
    ]
}

If you have learned the concept of the “Render Layout Template”, the only thing special here is the extra “id” field. While processing the rendering, the SyncSign system will automatically merge the events information into the template by replacing the content of “text” with the real attributes from the events.

../_images/how_calendar_template_works.png

The “id” field of each “TEXT” item determines the meaning of the block. So far, the SyncSign will replace the “text” for the IDs below:

  • ONGOING_EVENT_SUMMARY

  • ONGOING_CREATOR

  • ONGOING_CREATOR_EMAIL

  • ONGOING_ATTENDEES

  • ONGOING_ATTENDEES_LIST

  • ONGOING_TIME

  • ONGOING_TIME_WITH_YEAR (obsoleted)

  • UPCOMING (means a full list of forthcoming events)

  • UPCOMING_N_SUMMARY (please replace the N with 1,2,3…)

  • UPCOMING_N_TIME

  • UPCOMING_N_CREATOR

  • UPCOMING_N_CREATOR_EMAIL

  • UPCOMING_N_ATTENDEES

  • UPCOMING_N_ATTENDEES_LIST

  • NOTE_AVAILABLE

  • NOTE_UNTIL

  • NOTE_UNTIL_WITH_YEAR (obsoleted)

  • ROOM_NAME

  • BOTTOM_BUTTONS

Please note that if the “id” matches the above list, the placeholder in the “text” will be replaced.

Regarding the items in a template, please read the Render Layout Template.