Skip to content
Franco Mussopower pages
Code snippet

Boilerplate HTML to initialise calendar

Copy it with the button on the code. For the why and the walkthrough, see “Integrate FullCalendar.io with Power Pages – from JSON basics to advanced output with Bootstrap Modal”.

Boilerplate HTML to initialise calendarHTML
<div class="container">
    <div id='calendar'></div>
</div>
 
<script src='https://cdn.jsdelivr.net/npm/fullcalendar@6.1.4/index.global.min.js'></script>
<script>
 
    document.addEventListener('DOMContentLoaded', function() {
    var calendarEl = document.getElementById('calendar');
    var calendar = new FullCalendar.Calendar(calendarEl, {
        initialView: 'dayGridMonth',
        events: {% include 'Name of Event JSON Web Template here' %}
    });
    calendar.render();
    });
 
</script>

Search

Book a discovery call

30 minutes. Bring your trickiest Power Pages problem — I’ll tell you honestly whether I’m the right fit.