Triggered before a CMS page imported from a file is saved.
Use the event handler to assign custom values to the page properties.
public function subscribeEvents() {
Backend::$events->addEvent('cms:onCmsPageImport', $this, 'on_page_import');
}
public function on_page_import($page)
{
//assign a template to the page
$template = Cms_Template::create()->find_by_id(1);
if($template)
$page->template_id = $template->id;
}