Integrating FullCalendar.io with Power Pages is a powerful way to create customized calendars with dynamic content. By combining the power of FullCalendar, a popular JavaScript library for creating interactive calendars, with the flexibility of Power Pages’ templating system, users can create custom calendaring experiences that are tailored to their needs.
The integration begins with an understanding of JSON (JavaScript Object Notation), which is the data format used by FullCalendar.io. JSON is a lightweight data-interchange format that is easy to read and write and can be used to represent complex data structures.
Once the user has a basic understanding of JSON, they can begin to incorporate FullCalendar.io into their Power Pages. This involves using the FullCalendar.io API to create a series of events, which are then passed through the Power Pages templating system to render a fully-customized calendar. Users can also use the FullCalendar.io API to customize the calendar’s appearance, including the background colour, font size, and event icons.
Stage 1 – Create a JSON web template to feed the calendar Key skills covered Liquid – fetchxml, if, for and filters Creating a JSON endpoint Accessing columns from related records Preparing dates in ISO8601 format using liquid filters Escaping HTML using liquid filters Encoding URLs using liquid filters Dealing with comma separators Snippets Here’s a static example of the JSON before we make dynamic and loop over our advanced find results: The completed
liquid template, with events populated dynamically: Useful links fullcalendar.io