This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

cms:onCmsPageImport event

Triggered by Cms_Page
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onCmsPageImport(Cms_Page $page)
$page Cms_Page specifies the order object.
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;
}