Allows to add new buttons to the toolbar above the Edit Content form (CMS/Pages/Edit page content) 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 new toolbar elements.
public function subscribeEvents()
{
Backend::$events->addEvent('cms:onExtendPageContentToolbar', $this, 'extend_toolbar');
}
public function extend_toolbar($controller, $page)
{
$controller->renderPartial(PATH_APP.'/modules/cmsext/partials/_toolbar.htm', array('page'=>$page));
}
// Example of the _toolbar.htm partial
<div class="separator"> </div>
<?= backend_button('Some button', array('href'=>'#')) ?>
<?= backend_ajax_button('AJAX button', 'onSomeHandler') ?>