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:onExtendPagesContextMenu event

Triggered by /modules/cms/controllers/cms_pages/_pages_control_pabel.htm
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onExtendPagesContextMenu(Backend_Controller $controller, Cms_Page $page)
$controller Backend_Controller the back-end controller object.
$page Cms_Page specifies the CMS page object.
Allows to add new items to the list context menu on the CMS/Pages page in the Administration Area. The event handler should accept two parameters - the back-end controller object and the page object. Use the controller's renderPartial() method to render menu item elements. Each item should be presented with a LI and A elements. Example:
public function subscribeEvents()
{
  Backend::$events->addEvent('cms:onExtendPagesContextMenu', $this, 'extend_pages_menu');
}

public function extend_pages_menu($controller, $page)
{
  $controller->renderPartial(PATH_APP.'/modules/testmodule/partials/_menu.htm', array('page'=>$page));
}

// Example of the _menu.htm partial

<li>
  <a href="#" target="_blank">New item</a>
</li>