Kirby 2.1 Hook Usage- Creating Subpages

Good catch, @carstengrimm. The administrator will be accessing the panel, not the user- thanks!

I changed your code to match my needs. One question- when you say 'my-new-article', 'article', is the my-new-article the UID of the page? And is article the template of the page? If so then the code I have below should be right.

    try {

$newPage = page('calendar/events')->children()->create('course', 'event', array(
'title' => '{{course}}',
'description' => '{{description}}',
'instructor' => '{{instructor}}',
'begin_date' => '{{_begin_date}}'
));

Finally, where should I place this code so the panel triggers it every time I enter event info in calendar/events and creates a new subpage?

Thanks!