- Upload ‘calendar’ to /assets/snippets/calendar/
- Create a new snippet called ‘Calendar’
- Snippet Description: ‘1.0’
- Paste the following as the snippet code:
$basePath = $modx->config['base_path'] . '/assets/snippets/calendar/'; include $basePath . 'calendar.inc.php';