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>